Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureAppServiceEnvironmentResource.WithAcrPullIdentity

Method
📦 Aspire.Hosting.Azure.AppService v17.0.0
type AzureAppServiceEnvironmentResource interface {
// ... omitted for brevity
WithAcrPullIdentity(identityBuilder AzureUserAssignedIdentityResource) AzureAppServiceEnvironmentResource
}

Signature

methodWithAcrPullIdentitybuilder
Configures the Azure App Service environment to use the supplied AzureUserAssignedIdentityResource as the managed identity that App Service apps 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) AzureAppServiceEnvironmentResource
identityBuilderAzureUserAssignedIdentityResourceThe resource builder for the user-assigned identity that should be used for image pulls. The supplied identity must already have the AcrPull role on the configured container registry.
AzureAppServiceEnvironmentResource

The IResourceBuilder for chaining.

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

Defined on

This method is defined on the following type: