Skip to content
Docs Try Aspire
Docs Try

withAcrPullIdentity

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

Signature

method withAcrPullIdentity builder
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
identityBuilder AzureUserAssignedIdentityResource
AzureAppServiceEnvironmentResource

Applies to

This method applies to the following types: