Skip to content

Commit c00e084

Browse files
committed
docs: fix ACR pull ordering and add missing -g flag to keyvault show
1 parent 209af79 commit c00e084

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/install/azure-containers.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ Compared to the [Azure VM guide](/install/azure) (~\$195/month with Bastion), th
200200

201201
</Step>
202202

203-
<Step title="Grant ACR pull permission to the managed identity">
203+
<Step title="Grant ACR pull permission and restart the container">
204+
The initial container start will fail because the managed identity does not have ACR pull permission yet. Grant the role, then trigger a new revision to retry the image pull:
205+
204206
```bash
205207
IDENTITY_PRINCIPAL="$(az containerapp show -g "${RG}" -n "${ACA_APP}" \
206208
--query identity.principalId -o tsv)"
@@ -211,6 +213,11 @@ Compared to the [Azure VM guide](/install/azure) (~\$195/month with Bastion), th
211213
--assignee "${IDENTITY_PRINCIPAL}" \
212214
--role AcrPull \
213215
--scope "${ACR_ID}"
216+
217+
# Force a new revision so the now-authorized identity retries the image pull
218+
az containerapp update \
219+
-g "${RG}" -n "${ACA_APP}" \
220+
--image "${ACR_NAME}.azurecr.io/openclaw:latest"
214221
```
215222

216223
</Step>
@@ -288,7 +295,7 @@ Compared to the [Azure VM guide](/install/azure) (~\$195/month with Bastion), th
288295
-n "provider-api-key" \
289296
--value "<YOUR_API_KEY>"
290297

291-
KEY_VAULT_URI="$(az keyvault show -n "${KV_NAME}" --query properties.vaultUri -o tsv)"
298+
KEY_VAULT_URI="$(az keyvault show -g "${RG}" -n "${KV_NAME}" --query properties.vaultUri -o tsv)"
292299

293300
az containerapp secret set \
294301
-g "${RG}" -n "${ACA_APP}" \

0 commit comments

Comments
 (0)