Error During create Container apps
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the az containerapp create command and the reported ACR role-assignment and revision-expired messages. Reproduce the failure with the stated artifact and Azure resources, then confirm the command provisions api-gateway successfully or document the required registry scope and restart steps.
Written by the indexing model from the issue text.
Description
It looks like the error you're encountering is due to the Azure Container Registry (ACR) resource not being found in my specified subscription.
I am getting Error after running this command
az containerapp create
--name $APP_NAME
--resource-group $RESOURCE_GROUP
--ingress external
--target-port 8080
--environment $ACA_ENVIRONMENT
--min-replicas 1
--artifact ./spring-petclinic-api-gateway/target/spring-petclinic-api-gateway-$VERSION.jar
--bind $JAVA_CONFIG_COMP_NAME $JAVA_EUREKA_COMP_NAME
--runtime java
Error Message
Role assignment failed with error message: "The resource with name 'XXXXXX' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'XXXXXXXXXXX'.".
To add the role assignment manually, please run 'az role assignment create --assignee XXXXXXXX --scope --role acrpull'.
You may have to restart the containerapp with 'az containerapp revision restart'.
- Running ..Failed to provision revision for container app 'api-gateway'. Error details: Operation expired.
Please provide us with the following information:
This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Versions
Mention any other details that might be useful
Thanks! We'll be in touch soon.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 247
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure-Samples/java-on-aca
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Azure-Samples/java-on-aca#190 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Azure-Samples/java-on-aca#172 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Azure-Samples/java-on-aca#126 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Azure-Samples/java-on-aca#118 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Azure-Samples/java-on-aca#115 · 1 comment ·
All issues in Azure-Samples/java-on-aca
Similar issues
-
Product: Azure Policy :shield: Topic: Diagnostic Settings :test_tube: Topic: Policy :pencil:
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
Azure/Azure-Landing-Zones#4283 · 1 comment ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug zenodo
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Language: Terraform :globe_with_meridians: Needs: Triage :mag: Type: Bug :bug:
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Azure/terraform-azurerm-avm-res-containerregistry-registry#230 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100