Skip to content
Docs Try Aspire

withPurgeTask

Function
📦 Aspire.Hosting.Azure.ContainerRegistry v13.2.0-preview.1.26159.1
interface AzureContainerRegistryResource {
// ... omitted for brevity
withPurgeTask(
schedule: string,
filter?: string,
ago?: timespan,
keep?: number,
taskName?: string): AzureContainerRegistryResource;
}

Signature

method withPurgeTask builder
Configures a purge task for the Azure Container Registry resource.
withPurgeTask(
schedule: string,
filter?: string,
ago?: timespan,
keep?: number,
taskName?: string): AzureContainerRegistryResource
schedule string
filter string optional
ago timespan optional
keep number optional = 3
taskName string optional
AzureContainerRegistryResource

Applies to

This function is an extension method on the following types: