Skip to content
DocsTry Aspire
DocsTry

addSubnet

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

Signature

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

Applies to

This method applies to the following types: