Skip to content

Commit e2305f2

Browse files
committed
Add method to create container app with private image.
1 parent 8fe315b commit e2305f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ You can verify that the role was added by checking the identity from the **Ident
116116
1. Select **Azure role assignments** from the menu on the managed identity resource page.
117117
1. Verify that the `acrpull` role is assigned to the user-assigned managed identity.
118118
119+
#### Create a container app with a private image
120+
121+
If you don't want to start by creating a container app with a public image, you can also do the following.
122+
123+
1. Create a user-assigned managed identity.
124+
1. Add the `acrpull` role to the user-assigned managed identity.
125+
1. Create a container app with a private image and the user-assigned managed identity.
126+
127+
This method is typical in Infrastructure as Code (IaC) scenarios.
128+
119129
### Clean up resources
120130
121131
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.

0 commit comments

Comments
 (0)