Wednesday, September 22, 2021

AZURE -204 (23 Sept 2021) - DAY4

  • Resource Manager Deployment Template 
  • Azure Container
  • Azure Container Registry
  • API Management 

======================================

Sonu Sathyadas

Azure CLI is installed


1) Create the ACR

2) Enable admin account

3) Login to ACR using

Login to Azure : az login

Login to ACR: az acr login -n name

4) Create the docker image - ' docker build -t imagename:version .'

5) Tag the image with ACR prefix - docker tag imagename:version acrname/imagename:version

6) Push image to ACR using 'docker push imagename'


Instead of steps 4,5,6 we can run a single stepaz acr build -registry <your registry name> --image sampleapp .


https://sonustorageaccount.blob.core.windows.net/demofiles/MyDemoApp.zip


kkazcontainerregistry.azurecr.io

az acr login -n kkazcontainerregistry

 https://kkazcontainerregistry.azurecr.io/v2/



=============================================================================================================================


No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass