Monday, March 29, 2021

10 Things Serverless Architects Should Know (By AWS Architecture Blog)

It's really a good resource By AWS for people who needs to do or learn serverless architecture, so I share it here for our blog readers.

1: API and Microservices Design

2: Event-driven Architectures and Asynchronous Messaging Patterns

3: Workflow Orchestration in a Distributed, Microservices Environment

4: Lambda Computing Environment and Programming Model

5: Serverless Deployment Automation and CI/CD Patterns

6: Serverless Identity Management, Authentication, and Authorization

7: End-to-End Security Techniques

8: Application Observability with Comprehensive Logging, Metrics, and Tracing

9. Ensuring Your Application is Well-Architected

10. Continuing your Learning as Serverless Computing Continues to Evolve

Reference and deep details : 

Sunday, November 1, 2020

Azure Function : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=

 Azure Function :  Could not load file or assembly 'Microsoft.CodeAnalysis, Version=

Reason :

 SDK versions will "clean" your output folder for assemblies that they don't think you need. 

Solution : 

Turn it off the clean operation completely by adding the property 
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput> to your csproj file

Tuesday, September 1, 2020

Export / Import Existing Database to Azure SQL

 Export :

- Using SSMS SQL Server Management Studio:

   - Right Click the DB >>  Tasks >>  Export Data-Tire Application 

   - You will get your BACPAC File.

Import :

   - Upload the BACPAC File to Azure Storage account 

   - Open Azure portal >> SQL servers >> Click your Target Server >> in top toolbar select "Import database"

      >> Select the uploaded BACPAC File from the storage account 

To monitor import progress:

 - Open the database server page >> Settings >> Click select Import/Export history.

 - Or Click the Notifications icon in the top bar 

Info & Limitation :

In Azure, you cannot restore the BACPAC file into an existing database.

As WorkAround:

- You have to restore with a different name.

- Delete old database

- Rename the new one to the old database name.

Create Azure SQL Staging | Testing Database :


Tuesday, August 11, 2020

Create Azure SQL Staging | Testing Database

 Create Azure SQL Staging | Testing Database

We can do that by copying the current production database on either the same server or a different server using one of the following ways :

1- Using Azure Portal :

Azure SQL >> From the top bar click Copy >> then follow the wizard 


2- Using Transact-SQL:

- Log into the Master database and excute this script:

CREATE DATABASE [StagingDatabaseName] AS COPY OF MyServerName.[SourceDatabaseName]

- To monitor the Progress:

          SELECT * FROM sys.dm_database_copies


3- Using Azure CLI :

az sql db copy --dest-name "CopyOfMySampleDatabase" --dest-resource-group "myResourceGroup" --dest-server $targetserver `

    --name "<databaseName>" --resource-group "<resourceGroup>" --server $sourceserver


4- Using PowerShell:

New-AzSqlDatabaseCopy -ResourceGroupName "<resourceGroup>" -ServerName $sourceserver -DatabaseName "<databaseName>" `

    -CopyResourceGroupName "myResourceGroup" -CopyServerName $targetserver -CopyDatabaseName "CopyOfMySampleDatabase"

Monday, July 27, 2020

Azure App Service , The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Azure App Service :
Some Files can not be loaded in your website like Fonts, MP4, Zip , etc. and you get the message :

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Solution -1 >>  Add Web,config to your Web site with mimeMap configurations

Solution 2 >> Built-in Azure Solution :

1- Open Azure Portal.
2- Open Your Target App Service.
3- Click Configuration in the left side menu.
4- Click Path Mappings Tab and start adding your mimeMaps  

MIME Types List / Reference :

Common MIME types :

The official registry of MIME media types By (IANA ) :

Tuesday, January 8, 2019

Decision tree for Azure compute services

The following flowchart will help you to choose a compute service for your application. The flowchart guides you through a set of key decision criteria to reach a recommendation. 

Thursday, March 22, 2018

VS Code Angular Stop Automatic Rebuilds

VS Code Angular Stop Automatic Rebuilds :

ng serve --watch=false