Skip to content

Instantly share code, notes, and snippets.

@sathishjayapal
Last active July 4, 2023 19:32
Show Gist options
  • Save sathishjayapal/438642cdc155a074ae6ac7668a913e1d to your computer and use it in GitHub Desktop.
Save sathishjayapal/438642cdc155a074ae6ac7668a913e1d to your computer and use it in GitHub Desktop.
az commands list
  • az login --use-device-code
  • az vm list
  • az vm list --query '[].{name:name, resourceGroup:resourceGroup, tags:tags}' -o json
  • az vm update -g 1-3EA18CD3-PLAYGROUND-SANDBOX -n sathish-tags-testvm --set tags.MarkForDeletion=Yes
  • az network vnet list --query '[].{name:name, resourceGroup:resourceGroup, tags:tags}' -o json
  • az resource tag --tags "Dept=IT" "Environment=Production" "CreatedBy=Sathish" --resource-group playground-sandbox -n sathish-tags-testvm-vnet --resource-type "Microsoft.Network/VirtualNetworks"
    • az webapp config appsettings set --resource-group --name --settings WEBSITES_PORT=8080

ACR commands

  • ACR=sathishacr
  • RG=sathish-rg
  • az acr create --resource-group $RG --name $ACR --sku Basic --admin-enabled true
  • az acr build --image sathish-reactive --registry $ACR --file Dockerfile .

Docker commands

  • docker login
  • docker login sathishreactiveacr.azurecr.io
  • docker push sathishreactiveacr.azurecr.io/sathish-reactive

Unix Commands

  • cat file1.txt file2.txt | sort | uniq -d -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment