# AzureContainerAppEnvironmentResource.withAcrPullIdentity

- Module: [Aspire.Hosting.Azure.AppContainers](/reference/api/typescript/aspire.hosting.azure.appcontainers.md)
- Defined on: [AzureContainerAppEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.appcontainers/azurecontainerappenvironmentresource.md)
- Version: `13.4.0`
- Kind: `method`

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;
}
```

## Signature

```typescript
withAcrPullIdentity(identityBuilder: AzureUserAssignedIdentityResource): AzureContainerAppEnvironmentResource
```

## Parameters

- `identityBuilder` (`AzureUserAssignedIdentityResource`)

## Returns

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

## Defined on

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