Azure-Samples / Azure-Samples/java-on-aca
Error During create Container apps
- Vorherrschende Sprache
- CSS
- Sterne
- 15
- Forks
- 247
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Beginnen Sie mit dem Befehl az containerapp create und den gemeldeten ACR-Meldungen role-assignment und revision-expired. Reproduzieren Sie den Fehler mit dem angegebenen Artefakt und den Azure-Ressourcen und bestätigen Sie anschließend, dass der Befehl api-gateway erfolgreich bereitstellt, oder dokumentieren Sie den erforderlichen Registry-Scope und die Schritte zum Neustart.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, java, spring
- Bereich
- cloud, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100