Interview Prep/Azure/Policy, Cost, AWS Mapping and Rapid-fire

Rapid-fire: ACR and Key Vault commands.

BeginnerConceptPolicy, Cost, AWS Mapping and Rapid-fire
Answer
az acr create -g rg -n acrshop --sku Standard --admin-enabled false
az acr login -n acrshop
az acr build -r acrshop -t shop/web:v1 .
az acr repository list -n acrshop -o table
az acr repository show-tags -n acrshop --repository shop/web --orderby time_desc -o table
az acr import -n acrshop --source docker.io/library/nginx:1.27 --image base/nginx:1.27
az keyvault create -n kv-shop -g rg --enable-rbac-authorization true
az keyvault secret set --vault-name kv-shop -n db-password --value "$(openssl rand -base64 24)"
az keyvault secret show --vault-name kv-shop -n db-password --query value -o tsv
az keyvault secret list-versions --vault-name kv-shop -n db-password -o table

az acr import is how we pull Docker Hub base images into ACR to avoid rate limits.

Azure All Azure questions

More on Policy, Cost, AWS Mapping and Rapid-fire