# Aspire.Hosting.Azure.ContainerRegistry

- Module: `Aspire.Hosting.Azure.ContainerRegistry`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `5`
- Types: `2`

## Types

- [AzureContainerRegistryResource](/reference/api/typescript/aspire.hosting.azure.containerregistry/azurecontainerregistryresource.md) -- `handle` - 1 members

## Functions

- [addAzureContainerRegistry](/reference/api/typescript/aspire.hosting.azure.containerregistry/addazurecontainerregistry.md) -- `method` -- Adds an Azure Container Registry resource to the application model.
- [getAzureContainerRegistry](/reference/api/typescript/aspire.hosting.azure.containerregistry/getazurecontainerregistry.md) -- `method` -- Gets the Azure Container Registry associated with a compute environment resource.
- [withAzureContainerRegistry](/reference/api/typescript/aspire.hosting.azure.containerregistry/withazurecontainerregistry.md) -- `method` -- Configures a compute environment resource to use an Azure Container Registry.
- [withContainerRegistryRoleAssignments](/reference/api/typescript/aspire.hosting.azure.containerregistry/withcontainerregistryroleassignments.md) -- `method` -- Adds role assignments to the specified Azure Container Registry resource.
- [withPurgeTask](/reference/api/typescript/aspire.hosting.azure.containerregistry/withpurgetask.md) -- `method` -- Adds a scheduled ACR purge task to remove old or unused container images from the registry.

## Enums

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