An Azure Resource Manager configuration is being designed to host an API container image stored in a private Azure Container Registry named `acrcat.azurecr.io`. To comply with security guidelines, a dedicated user-assigned managed identity named `acr-reader-identity` has been assigned to the Azure Container App. To successfully pull the container image, which Bicep block must be defined under the `properties.configuration` section of the Container App resource?
- Aregistries: [
{
server: 'acrcat.azurecr.io'
}
] - registries: [
{
server: 'acrcat.azurecr.io'
identity: acrReaderIdentity.id
}
]Cevap - Cregistries: [
{
server: 'acrcat.azurecr.io'
identity: 'system'
}
] - DregistryCredentials: [
{
server: 'acrcat.azurecr.io'
identityId: acrReaderIdentity.id
}
]
Cevap
The Bicep configuration block that defines a list of registries containing the registry server name and the resource ID of the user-assigned managed identity as the value for the identity property.
The configuration block specifying registries with the correct server property and the user-assigned managed identity resource ID is correct. This instructs Azure Container Apps to use the specified user-assigned managed identity to authenticate and pull the image from the private registry.
Adım Adım Çözüm
Anahtar Kavram
Azure Container Apps Private Registry Authentication via Managed Identities