addSubnet

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
interface AzureVirtualNetworkResource {
// ... omitted for brevity
addSubnet(
name: string,
addressPrefix: string | ParameterResource,
subnetName?: string): AzureSubnetResource;
}

Signature

methodaddSubnetbuilder
Adds an Azure subnet resource to an Azure Virtual Network resource.
addSubnet(
name: string,
addressPrefix: string | ParameterResource,
subnetName?: string): AzureSubnetResource
namestring
addressPrefixstring | ParameterResource
subnetNamestringoptional
AzureSubnetResource

Applies to

This method applies to the following types: