Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AksNodePoolResource.WithSubnet

Method
📦 Aspire.Hosting.Azure.Kubernetes v17.0.0
type AksNodePoolResource interface {
// ... omitted for brevity
WithSubnet(subnet AzureSubnetResource) AksNodePoolResource
}

Signature

methodWithSubnetbuilder
Configures an AKS node pool to use a specific VNet subnet
WithSubnet(subnet AzureSubnetResource) AksNodePoolResource
subnetAzureSubnetResourceThe subnet to use for this node pool.
AksNodePoolResource

The resource builder.

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

Defined on

This method is defined on the following type: