Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithAcrPullIdentity

Method
📦 Aspire.Hosting.Azure.AppContainers v17.0.0
func (AzureContainerAppEnvironmentResource) WithAcrPullIdentity(identityBuilder AzureUserAssignedIdentityResource) AzureContainerAppEnvironmentResource

Signature

methodWithAcrPullIdentitybuilder
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
identityBuilderAzureUserAssignedIdentityResourceThe resource builder for the user-assigned identity that should be used for image pulls. This identity is only used for the AcrPull role; it is not assigned to individual container apps in the environment.
AzureContainerAppEnvironmentResource

The IResourceBuilder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: