Dockerfile.txtHi Pravallika, I did 2 tests.
First, I created a new simple image based on node public image (dockerfile attached)
docker build --tag simple:latest .
I logged to ACR with
az acr login --name acraz2003sierac --output json
which went fine
I ran again
az containerapp create --name aca-az2003-bis --resource-group $rg1 --environment environmentforacontpps --registry-identity $spResourceID --registry-server acraz2003sierac.azurecr.io --image simple:latest --ingress external
I gt the following error
/ Running ..Failed to provision revision for container app 'aca-az2003-bis'. Error details: The following field(s) are either invalid or missing. Field 'template.containers.aca-az2003-bis.image' is invalid with details: 'Invalid value: "simple:latest": GET https:: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:library/simple Type:repository]]';..
Then I pulled an image from dockerhub simply
docker pull node
Tagged it as follows
docker image tag node:latest acraz2003sierac.azurecr.io/node:latest
Then pushed it to my ACR
docker push acraz2003sierac.azurecr.io/node:latest
Then ran
az containerapp create --name aca-az2003-bis --resource-group $rg1 --environment environmentforacontpps --registry-identity $spResourceID --registry-server acraz2003sierac.azurecr.io --image node:latest --ingress external
and Hooooop, it went through as follows
Container app created. To access it over HTTPS, enable ingress: az containerapp ingress enable -n aca-az2003-bis -g RG1 --type external --target-port <port> --transport auto
{
"id": "/subscriptions/XXXXXX-4725-460d-8e3b-XXXXXXXXXX/resourceGroups/RG1/providers/Microsoft.App/containerapps/aca-az2003-bis",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/XXXXXX-4725-460d-8e3b-XXXXXXXXXX/resourcegroups/RG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai-az2003": {
"clientId": "XXXXXXX-138a-4a20-a8a8-XXXXXXXX",
"principalId": "XXXXXXX-c0d9-409a-8d1d-XXXXXXX"
}
}
},
"location": "France Central",
"name": "aca-az2003-bis",
"properties": {
"configuration": {
"activeRevisionsMode": "Single",
"dapr": null,
"identitySettings": [],
"ingress": null,
"maxInactiveRevisions": 100,
"registries": [
{
"identity": "/subscriptions/XXXXXX-4725-460d-8e3b-XXXXXXXXXX/resourcegroups/RG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai-az2003",
"passwordSecretRef": "",
"server": "acraz2003sierac.azurecr.io",
"username": ""
}
],
"revisionTransitionThreshold": null,
"runtime": null,
"secrets": null,
"service": null,
"targetLabel": ""
},
"customDomainVerificationId": "XXXXXXXX69DAA87CD2EB408956BA71C39D6345B2F2EC0XXXXXXXX",
"delegatedIdentities": [],
"environmentId": "/subscriptions/XXXXXX-4725-460d-8e3b-XXXXXXXXXX/resourceGroups/RG1/providers/Microsoft.App/managedEnvironments/environmentforacontpps",
"eventStreamEndpoint": "https://francecentral.azurecontainerapps.dev/subscriptions/XXXXXX-4725-460d-8e3b-XXXXXXXXXX/resourceGroups/RG1/containerApps/aca-az2003-bis/eventstream",
"latestReadyRevisionName": "aca-az2003-bis--n50fh1m",
"latestRevisionFqdn": "",
"latestRevisionName": "aca-az2003-bis--n50fh1m",
"managedEnvironmentId": "/subscriptions/XXXXXX-4725-460d-8e3b-XXXXXXXXXX/resourceGroups/RG1/providers/Microsoft.App/managedEnvironments/environmentforacontpps",
"outboundIpAddresses": [
"4.176.1.39",
"4.176.1.11",
"51.138.196.192",
"51.138.196.150",
"51.138.195.246",
"51.138.196.195",
"51.138.196.134",
"51.138.196.59",
"51.138.196.133",
"51.138.195.236",
"51.138.196.83",
"51.138.196.159",
"4.176.1.58",
"4.176.1.106",
"20.19.129.224",
"20.19.129.226",
"20.19.129.104",
"20.19.129.211",
"20.19.129.138",
"20.19.129.212",
"20.216.216.188",
"20.216.216.219",
"20.216.217.5",
"20.216.216.182",
"98.66.242.126",
"98.66.242.144",
"98.66.242.209",
"98.66.242.230",
"98.66.242.239",
"98.66.242.232",
"20.74.16.183",
"20.74.94.128",
"20.74.94.150",
"20.74.93.40",
"98.66.249.192",
"98.66.250.10",
"98.66.248.181",
"98.66.249.135",
"98.66.248.214",
"98.66.250.141",
"172.189.67.152"
],
"patchingMode": "Automatic",
"provisioningState": "Succeeded",
"runningStatus": "Running",
"template": {
"containers": [
{
"image": "node:latest",
"imageType": "ContainerImage",
"name": "aca-az2003-bis",
"resources": {
"cpu": 0.5,
"ephemeralStorage": "2Gi",
"memory": "1Gi"
}
}
],
"initContainers": null,
"revisionSuffix": "",
"scale": {
"cooldownPeriod": 300,
"maxReplicas": 10,
"minReplicas": null,
"pollingInterval": 30,
"rules": null
},
"serviceBinds": null,
"terminationGracePeriodSeconds": null,
"volumes": null
},
"workloadProfileName": "Consumption"
},
"resourceGroup": "RG1",
"systemData": {
"createdAt": "2025-03-12T10:04:48.4326205",
"createdBy": ""myuser@domainfr",
"createdByType": "User",
"lastModifiedAt": "2025-03-12T10:04:48.4326205",
"lastModifiedBy": "myuser@domainfr",
"lastModifiedByType": "User"
},
"type": "Microsoft.App/containerApps"
So what should be the reason behind errors when I use an image I build?