Skip to content

Commit bb6760e

Browse files
Merge pull request #214195 from cebundy/add-note-to-mi
[Container Apps]: clarify system adds acrpull role to system-assigned managed identity
2 parents f31bc55 + 481eec3 commit bb6760e

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

articles/container-apps/managed-identity-image-pull.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,15 @@ Create a container app revision with a private image and the system-assigned man
9393
1. Select **Save**.
9494
1. Select **Create** from the **Create and deploy new revision** page.
9595

96-
A new revision will be created and deployed. The portal will automatically attempt to add the `acrpull` role to the user-assigned managed identity. If the role isn't added, you can add it manually.
96+
A new revision will be created and deployed. The portal will automatically attempt to add the `acrpull` role to the user-assigned managed identity. If the role isn't added, you can add it manually.
97+
98+
You can verify that the role was added by checking the identity from the **Identity** pane of the container app page.
99+
100+
1. Select **Identity** from the left menu.
101+
1. Select the **User assigned** tab.
102+
1. Select the user-assigned managed identity.
103+
1. Select **Azure role assignments** from the menu on the managed identity resource page.
104+
1. Verify that the `acrpull` role is assigned to the user-assigned managed identity.
97105

98106
### Clean up resources
99107

@@ -172,6 +180,15 @@ Edit the container to use the image from your private Azure Container Registry,
172180
1. Select **Create** at the bottom of the **Create and deploy new revision** page
173181
1. After a few minutes, select **Refresh** on the **Revision management** page to see the new revision.
174182

183+
A new revision will be created and deployed. The portal will automatically attempt to add the `acrpull` role to the system-assigned managed identity. If the role isn't added, you can add it manually.
184+
185+
You can verify that the role was added by checking the identity in the **Identity** pane of the container app page.
186+
187+
1. Select **Identity** from the left menu.
188+
1. Select the **System assigned** tab.
189+
1. Select **Azure role assignments**.
190+
1. Verify that the `acrpull` role is assigned to the system-assigned managed identity.
191+
175192
### Clean up resources
176193

177194
If you're not going to continue to use this application, you can delete the Azure Container Apps instance and all the associated services by removing the resource group.
@@ -435,7 +452,7 @@ Create your container app with your image from the private registry authenticate
435452

436453
# [Azure CLI](#tab/azure-cli)
437454

438-
Copy the identity's resource ID to paste into the *\<IDENTITY_ID\>* placeholders in the command below.
455+
Copy the identity's resource ID to paste into the *\<IDENTITY_ID\>* placeholders in the command below. If your image tag isn't `latest`, replace 'latest' with your tag.
439456

440457
```azurecli
441458
echo $IDENTITY_ID
@@ -557,9 +574,6 @@ New-AzContainerApp @AppArgs
557574

558575
Update the container app with the image from your private container registry and add a system-assigned identity to authenticate the Azure Container Registry pull. You can also include other settings necessary for your container app, such as ingress, scale and Dapr settings.
559576

560-
If you are using an image tag other than `latest`, replace the `latest` value with your value.
561-
562-
563577
# [Azure CLI](#tab/azure-cli)
564578

565579
Set the registry server and turn on system-assigned managed identity in the container app.
@@ -572,7 +586,6 @@ az containerapp registry set \
572586
--server "$REGISTRY_NAME.azurecr.io"
573587
```
574588

575-
576589
```azurecli
577590
az containerapp update \
578591
--name $CONTAINERAPP_NAME \

0 commit comments

Comments
 (0)