Skip to content
DocsTry Aspire
DocsTry

AzureVirtualNetworkResource.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

Defined on

This method is defined on the following type: