# withAcrPullIdentity

- Module: [Aspire.Hosting.Azure.AppService](/reference/api/typescript/aspire.hosting.azure.appservice.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

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.

## Definition

```typescript
interface AzureAppServiceEnvironmentResource {
  // ... omitted for brevity
  withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureAppServiceEnvironmentResource
}
```

## Parameters

- `identityBuilder` (`AzureUserAssignedIdentityResource`)

## Returns

[AzureAppServiceEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md) `builder`

## Applies to

- [AzureAppServiceEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md)
