Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithContainerRegistry

Method
📦 Aspire.Hosting.Azure.Kubernetes v17.0.0
func (AzureKubernetesEnvironmentResource) 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().

Applies to

This method applies to the following types: