# withAcrPullIdentity

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

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.

## Definition

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

## Parameters

- `identityBuilder` (`AzureUserAssignedIdentityResource`)

## Returns

[AzureContainerAppEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md) `builder`

## Applies to

- [AzureContainerAppEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md)
