Azure-Samples / Azure-Samples/java-on-aca

Error During create Container apps

オープン
#125 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
CSS
スター
15
フォーク
247
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

az containerapp create コマンドと、報告された ACR の role-assignment および revision-expired メッセージから始めます。指定されたアーティファクトと Azure リソースで失敗を再現し、その後、コマンドによって api-gateway が正常にプロビジョニングされることを確認するか、必要なレジストリ スコープと再起動手順を記録します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, java, spring
領域
cloud, devops
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。