You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/containers.md
+5-40Lines changed: 5 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Features include:
33
33
## Configuration
34
34
35
35
36
-
The following is an example of the `containers` array in the [`properties.template`](azure-resource-manager-api-spec.md#propertiestemplate) section of a container app resource template. The excerpt shows the available configuration options when setting up a container.
36
+
The following code is an example of the `containers` array in the [`properties.template`](azure-resource-manager-api-spec.md#propertiestemplate) section of a container app resource template. The excerpt shows the available configuration options when setting up a container.
37
37
38
38
```json
39
39
"containers": [
@@ -115,7 +115,7 @@ The following is an example of the `containers` array in the [`properties.templa
115
115
|`volumeMounts`| An array of volume mount definitions. | You can define a temporary volume or multiple permanent storage volumes for your container. For more information about storage volumes, see [Use storage mounts in Azure Container Apps](storage-mounts.md).|
116
116
|`probes`| An array of health probes enabled in the container. | This feature is based on Kubernetes health probes. For more information about probes settings, see [Health probes in Azure Container Apps](health-probes.md).|
117
117
118
-
When allocating resources, the total amount of CPUs and memory requested for all the containers in a container app must add up to one of the following combinations.
118
+
The total CPU and memory allocations requested for all the containers in a container app must add up to one of the following combinations.
119
119
120
120
| vCPUs (cores) | Memory |
121
121
|---|---|
@@ -162,7 +162,7 @@ To use a container registry, you define the required fields in `registries` arra
162
162
}
163
163
```
164
164
165
-
With the registry information set up, the saved credentials can be used to pull a container image from the private registry when your app is deployed.
165
+
With the registry information added, the saved credentials can be used to pull a container image from the private registry when your app is deployed.
166
166
167
167
The following example shows how to configure Azure Container Registry credentials in a container app.
168
168
@@ -193,17 +193,9 @@ The following example shows how to configure Azure Container Registry credential
193
193
194
194
### Managed identity with Azure Container Registry
195
195
196
-
You can use an Azure managed identity to authenticate with Azure Container Registry instead of using a username and password. To use a managed identity:
196
+
You can use an Azure managed identity to authenticate with Azure Container Registry instead of using a username and password. For more information, see [Managed identities in Azure Container Apps](managed-identity.md).
197
197
198
-
- Assign a system-assigned or user-assigned managed identity to your container app.
199
-
- Specify the managed identity you want to use for each registry.
200
-
201
-
> [!NOTE]
202
-
> You will need to [enable an admin user account](../container-registry/container-registry-authentication.md) in your Azure
203
-
> Container Registry even when you use an Azure managed identity. You will not need to use the ACR admin credentials to pull images into Azure
204
-
> Container Apps, however, it is a prequisite to have the ACR admin user account enabled in the registry Azure Container Apps is pulling from.
205
-
206
-
When assigned a managed identity to a registry, use the managed identity resource ID for a user-assigned identity, or "system" for the system-assigned identity. For more information about using managed identities see, [Managed identities in Azure Container Apps Preview](managed-identity.md).
198
+
When assigning a managed identity to a registry, use the managed identity resource ID for a user-assigned identity, or "system" for the system-assigned identity.
207
199
208
200
```json
209
201
{
@@ -230,36 +222,9 @@ When assigned a managed identity to a registry, use the managed identity resourc
230
222
}
231
223
```
232
224
233
-
The managed identity must have `AcrPull` access for the Azure Container Registry. For more information about assigning Azure Container Registry permissions to managed identities, see [Authenticate with managed identity](../container-registry/container-registry-authentication-managed-identity.md).
234
-
235
-
#### Configure a user-assigned managed identity
236
-
237
-
To configure a user-assigned managed identity:
238
-
239
-
1. Create the user-assigned identity if it doesn't exist.
240
-
1. Give the user-assigned identity `AcrPull` permission to your private repository.
241
-
1. Add the identity to your container app configuration as shown above.
242
-
243
225
For more information about configuring user-assigned identities, see [Add a user-assigned identity](managed-identity.md#add-a-user-assigned-identity).
244
226
245
227
246
-
#### Configure a system-assigned managed identity
247
-
248
-
System-assigned identities are created at the time your container app is created, and therefore, won't have `AcrPull` access to your Azure Container Registry. As a result, the image can't be pulled from your private registry when your app is first deployed.
249
-
250
-
To configure a system-assigned identity, you must use one of the following methods.
251
-
252
-
-**Option 1**: Use a public registry for the initial deployment:
253
-
1. Create your container app using a public image and a system-assigned identity.
254
-
1. Give the new system-assigned identity `AcrPull` access to your private Azure Container Registry.
255
-
1. Update your container app replacing the public image with the image from your private Azure Container Registry.
256
-
-**Option 2**: Restart your app after assigning permissions:
257
-
1. Create your container app using a private image and a system-assigned identity. (The deployment will result in a failure to pull the image.)
258
-
1. Give the new system-assigned identity `AcrPull` access to your private Azure Container Registry.
259
-
1. Restart your container app revision.
260
-
261
-
For more information about configuring system-assigned identities, see [Add a system-assigned identity](managed-identity.md#add-a-system-assigned-identity).
262
-
263
228
## Limitations
264
229
265
230
Azure Container Apps has the following limitations:
0 commit comments