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/



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


Clear Linux History

https://unix.stackexchange.com/questions/49214/how-to-remove-a-single-line-from-history

  1. To clear all your history, use

    history -c
    
  2. To delete a single line, use

    history -d linenumber

https://www.skillpipe.com/#/bookshelf/books

 https://www.skillpipe.com/#/bookshelf/books

Azure - Pipeline - Add Approver for Stage

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