Skip to content
Docs Try Aspire
Docs Try

withAcrPullIdentity

Method
📦 Aspire.Hosting.Azure.AppContainers v13.4.0
interface AzureContainerAppEnvironmentResource {
// ... omitted for brevity
withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureContainerAppEnvironmentResource;
}

Signature

method withAcrPullIdentity builder
Configures the container app environment to use the supplied `AzureUserAssignedIdentityResource` as the managed identity that container apps in the environment use to pull images from the configured container registry (the `AcrPull` identity), instead of having Aspire create a new identity and a new `AcrPull` role assignment.
withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureContainerAppEnvironmentResource
identityBuilder AzureUserAssignedIdentityResource
AzureContainerAppEnvironmentResource

Applies to

This method applies to the following types: