Created
January 30, 2022 18:38
-
-
Save fabriciosanchez/97ab0e581e7caeab7ef8a771ddfbb5fe to your computer and use it in GitHub Desktop.
Deploys a new ACI with docker image from ACR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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