enter image description here Hello! I am new to Azure Container Registries and Azure Container apps. I am trying to create a container app using a private image in ACR. My ACR has admin user turned on for a username and password. I also have a managed identity with the proper permissions like ACRPull.
Inside I have a flask app listening to port 5000
However, I cant seem to get it working. Thank you for your help.
I tried using the portal and AZ Cli running commands like:
az containerapp create --name $CONTAINER_APP_NAME --resource-group $RESOURCE_GROUP --environment $CONTAINER_APP_ENVIRONMENT --image $IMAGE --target-port 5000 --ingress 'external' --registry-server $REGISTRY_SERVER --registry-username $ACR_USERNAME --registry-password $ACR_PASSWORD --user-assigned $IDENTITY_ID --query configuration.ingress.fqdn
As you are already using managing identity for authentication purpose, there is no need of including credentials like ACR username and password in your script again.
Imageattribute should contain the below format.--image $_REGISTRY_NAME.azurecr.io/$IMAGE_NAME:$IMAGETAGTo create a container app with private container image, following parameters are required along with the
az containerapp createCLI command.Creating app environment with CLI command:
To check the creation status of a container app, use
az containerapp showCLI command.