Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deploys a new ACI with docker image from ACR
az container create \
-g $RG \
-n your-aci-name \
--image $ACR_NAME.azurecr.io/your-image-name-in-acr:version \
--registry-login-server $ACR_NAME.azurecr.io \
--registry-username $(az keyvault secret show --vault-name $AKV_NAME --name $ACR_NAME-pull-usr --query value -o tsv) \
--registry-password $(az keyvault secret show --vault-name $AKV_NAME --name $ACR_NAME-pull-pwd --query value -o tsv) \
--dns-name-label your-aci-fqdn \
--query "{FQDN:ipAddress.fqdn}" \
--output table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment