Context:
I am using Azure Bicep to deploy and Azure Container App.
I have used this deployment script before and it worked.
I think there are 2 possibilities:
- Bicep changed by upgrading and it now fails when it succeeded before
- My code changed and the value I am providing is in fact invalid
We can assume #2 since #1 is less likely:
Error Snippet:
'template.containers.schultztables-client.image' is invalid with details: Invalid value: "shared<removed>acr.azurecr.io/schultztables-client:202307040328"
However, the Azure Docs say:
- image - This value takes the form of repository/image-name:tag which my value is
What I have tried:
- Verified the image actually exists in ACR
Questions:
- What else can I tried to deploy the container app using Bicep? Are there alternate forms of the image name?
- I am suspicious about the malformed http url "GET https:?scope=repository". Is this a clue to the problem?
Full Error:
==================================================================================================
Deploy sharedklgoyiacr.azurecr.io/schultztables-client:202307040328 Container App (What-If: False) ==================================================================================================
ERROR:
{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"target": "/subscriptions/375b0f6d-8ad5-412d-9e11-15d36d14dc63/resourceGroups/schultztables/providers/Microsoft.Resources/deployments/clientContainerApp",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "InvalidParameterValueInContainerTemplate",
"message": "The following field(s) are either invalid or missing. Field 'template.containers.schultztables-client.image' is invalid with details: 'Invalid value: "sharedklgoyiacr.azurecr.io/schultztables-client:202307040328": GET https:?scope=repository%3Aschultztables-client%3Apull&service=sharedklgoyiacr.azurecr.io: UNAUTHORIZED: authentication required, visit https://aka.ms/acr/authorization for more information.';."
}
]
}
}