# AzureContainerRegistryResource

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

## Definition

```typescript
interface AzureContainerRegistryResource
  extends IAzureResource,
    IContainerRegistry,
    IResource,
    IResourceWithParameters,
    IAzureContainerRegistryResource {
  withPurgeTask(
      schedule: string,
      filter?: string,
      ago?: timespan,
      keep?: number,
      taskName?: string): AzureContainerRegistryResource;
}
```

## Methods

- [withPurgeTask](/reference/api/typescript/aspire.hosting.azure.appservice/azurecontainerregistryresource/withpurgetask.md) -- `method` -- Configures a purge task for the Azure Container Registry resource.
    ```typescript
  withPurgeTask(schedule: string, filter?: string, ago?: timespan, keep?: number, taskName?: string): AzureContainerRegistryResource
  ```
