/tips-and-tricks

Some note-worthy tips and tricks in cloud native app development using .NET.

Primary LanguageC#

Running a .NET core web app in Azure Container Apps

Step 1:

Create resource group in Azure.

Step 2

Create container registry in Azure.

Step 3

Create Log Analytics workspace for the containers in Azure.

Step 4

Create a key vault and secrets (key value pairs) you may need in Azure.

Step 5

Go to Azure DevOps and create a Variable group (You can link the Key vault from Step 3 here if you wish to do so).

Grab the credentials for the registry created in Step 2.

Store the credentials inside demo-app-DEPLOYMENT variable group.

Note: I've already refreshed my password shown in the screenshot so you won't be able to connect to my registry. :)

Step 6

Create different environments: DEV and PROD

Step 7

Create a service connection that enables Azure Pipelines to access our Azure subscription

Azure DevOps -> Project settings -> Service Connections -> Create Service Connection -> Search 'Azure Resource Manager'

Next -> Service Principal (Automatic)