Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDelegatedSubnet

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
func (AzureDelegatedSubnetResource) WithDelegatedSubnet(subnet AzureSubnetResource) AzureDelegatedSubnetResource

Signature

methodWithDelegatedSubnetbuilder
Configures the resource to use the specified subnet with appropriate service delegation.
WithDelegatedSubnet(subnet AzureSubnetResource) AzureDelegatedSubnetResource
subnetAzureSubnetResourceThe subnet to associate with the resource.
AzureDelegatedSubnetResource

The resource builder.

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

Applies to

This method applies to the following types: