Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureKubernetesEnvironmentResource.WithContainerRegistry

Method
📦 Aspire.Hosting.Azure.Kubernetes v17.0.0
type AzureKubernetesEnvironmentResource interface {
// ... omitted for brevity
WithContainerRegistry(registry AzureContainerRegistryResource) AzureKubernetesEnvironmentResource
}

Signature

methodWithContainerRegistrybuilder
Configures the AKS environment to use a specific Azure Container Registry for image storage. When set, this replaces the auto-created default container registry.
WithContainerRegistry(registry AzureContainerRegistryResource) AzureKubernetesEnvironmentResource
registryAzureContainerRegistryResourceThe Azure Container Registry resource builder.
AzureKubernetesEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: