Skip to content
DocsTry Aspire
DocsTry

AzureContainerRegistryResource

Handle
📦 Aspire.Hosting.Azure.ContainerRegistry v13.4.0
interface AzureContainerRegistryResource
extends IAzureResource,
IContainerRegistry,
IResource,
IResourceWithParameters,
IAzureContainerRegistryResource,
IAzurePrivateEndpointTarget {
withPurgeTask(
schedule: string,
filter?: string,
ago?: timespan,
keep?: number,
taskName?: string): AzureContainerRegistryResource;
}

Methods

methodwithPurgeTaskbuilder
Adds a scheduled ACR purge task to remove old or unused container images from the registry.
withPurgeTask(
schedule: string,
filter?: string,
ago?: timespan,
keep?: number,
taskName?: string): AzureContainerRegistryResource
schedulestring
filterstringoptional
agotimespanoptional
keepnumberoptional= 3
taskNamestringoptional
AzureContainerRegistryResource