Skip to content
Docs Try Aspire
Docs Try

withSubnet

Method
📦 Aspire.Hosting.Azure.Kubernetes v13.4.0-preview.1.26281.18
interface AzureKubernetesEnvironmentResource {
// ... omitted for brevity
withSubnet(subnet: AzureSubnetResource): AzureKubernetesEnvironmentResource;
}

Signature

method withSubnet builder
Configures the AKS cluster to use a VNet subnet
withSubnet(subnet: AzureSubnetResource): AzureKubernetesEnvironmentResource
subnet AzureSubnetResource
AzureKubernetesEnvironmentResource

Applies to

This method applies to the following types: