Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Created January 30, 2022 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabriciosanchez/97ab0e581e7caeab7ef8a771ddfbb5fe to your computer and use it in GitHub Desktop.
Save fabriciosanchez/97ab0e581e7caeab7ef8a771ddfbb5fe to your computer and use it in GitHub Desktop.
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