IWithSubnet.WithSubnet(String, String) Method

Definition

Explicitly adds a subnet to the virtual network. If no subnets are explicitly specified, a default subnet called "subnet1" covering the entire first address space will be created. Note this method's effect is additive, i.e. each time it is used, a new subnet is added to the network.

public Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithCreateAndSubnet WithSubnet (string name, string cidr);
abstract member WithSubnet : string * string -> Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithCreateAndSubnet
Public Function WithSubnet (name As String, cidr As String) As IWithCreateAndSubnet

Parameters

name
String

The name to assign to the subnet.

cidr
String

The address space of the subnet, within the address space of the network, using the CIDR notation.

Returns

Applies to