# Aspire.Hosting.Azure.ContainerRegistry

- Module: `Aspire.Hosting.Azure.ContainerRegistry`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `5`
- Types: `6`

## Handles

- [AzureBicepResource](/reference/api/go/aspire.hosting.azure.containerregistry/azurebicepresource.md) -- `handle` - 0 members
- [AzureContainerRegistryResource](/reference/api/go/aspire.hosting.azure.containerregistry/azurecontainerregistryresource.md) -- `handle` - 1 members
- [AzureEnvironmentResource](/reference/api/go/aspire.hosting.azure.containerregistry/azureenvironmentresource.md) -- `handle` - 0 members
- [AzureProvisioningResource](/reference/api/go/aspire.hosting.azure.containerregistry/azureprovisioningresource.md) -- `handle` - 0 members
- [AzureUserAssignedIdentityResource](/reference/api/go/aspire.hosting.azure.containerregistry/azureuserassignedidentityresource.md) -- `handle` - 0 members

## Enums

- [AzureContainerRegistryRole](/reference/api/go/aspire.hosting.azure.containerregistry/azurecontainerregistryrole.md) -- `enum` - 6 values -- Represents ATS-compatible Azure Container Registry roles.

## Functions

- [WithPurgeTask](/reference/api/go/aspire.hosting.azure.containerregistry/withpurgetask.md) -- `method` - on `AzureContainerRegistryResource` -- Adds a scheduled ACR purge task to remove image tags and eligible untagged manifests.
- [AddAzureContainerRegistry](/reference/api/go/aspire.hosting.azure.containerregistry/addazurecontainerregistry.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an Azure Container Registry resource to the application model.
- [GetAzureContainerRegistry](/reference/api/go/aspire.hosting.azure.containerregistry/getazurecontainerregistry.md) -- `method` - on `Resource` -- Gets the Azure Container Registry associated with a compute environment resource.
- [WithAzureContainerRegistry](/reference/api/go/aspire.hosting.azure.containerregistry/withazurecontainerregistry.md) -- `method` - on `Resource` -- Configures a compute environment resource to use an Azure Container Registry.
- [WithContainerRegistryRoleAssignments](/reference/api/go/aspire.hosting.azure.containerregistry/withcontainerregistryroleassignments.md) -- `method` - on `Resource` -- Adds role assignments to the specified Azure Container Registry resource.
