# AzureContainerRegistryResource

- Module: [Aspire.Hosting.Azure.ContainerRegistry](/reference/api/go/aspire.hosting.azure.containerregistry.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

## Definition

```go
type AzureContainerRegistryResource interface {
    Resource
}
```

## Embeds

- `Resource`

## Methods

- [WithPurgeTask](/reference/api/go/aspire.hosting.azure.containerregistry/azurecontainerregistryresource/withpurgetask.md) -- `method` -- Adds a scheduled ACR purge task to remove image tags and eligible untagged manifests.
  ```go
  WithPurgeTask(schedule string, options ...*WithPurgeTaskOptions) AzureContainerRegistryResource
  ```
