다음을 통해 공유


IWithNetwork.WithNewNetwork Method

Definition

Overloads

WithNewNetwork(ICreatable<INetwork>)

Create a new virtual network to associate with the virtual network gateway, based on the provided definition.

WithNewNetwork(String, String)

Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a default subnet for virtual network gateway.

WithNewNetwork(String, String, String)

Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a subnet for virtual network gateway.

WithNewNetwork(ICreatable<INetwork>)

Create a new virtual network to associate with the virtual network gateway, based on the provided definition.

public Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGateway.Definition.IWithGatewayType WithNewNetwork (Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.INetwork> creatable);
abstract member WithNewNetwork : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.INetwork> -> Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGateway.Definition.IWithGatewayType
Public Function WithNewNetwork (creatable As ICreatable(Of INetwork)) As IWithGatewayType

Parameters

creatable
ICreatable<INetwork>

A creatable definition for a new virtual network.

Returns

Applies to

WithNewNetwork(String, String)

Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a default subnet for virtual network gateway.

public Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGateway.Definition.IWithGatewayType WithNewNetwork (string addressSpaceCidr, string subnetAddressSpaceCidr);
abstract member WithNewNetwork : string * string -> Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGateway.Definition.IWithGatewayType
Public Function WithNewNetwork (addressSpaceCidr As String, subnetAddressSpaceCidr As String) As IWithGatewayType

Parameters

addressSpaceCidr
String

The address space for the virtual network.

subnetAddressSpaceCidr
String

The address space for the subnet.

Returns

Applies to

WithNewNetwork(String, String, String)

Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a subnet for virtual network gateway.

public Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGateway.Definition.IWithGatewayType WithNewNetwork (string name, string addressSpace, string subnetAddressSpaceCidr);
abstract member WithNewNetwork : string * string * string -> Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGateway.Definition.IWithGatewayType
Public Function WithNewNetwork (name As String, addressSpace As String, subnetAddressSpaceCidr As String) As IWithGatewayType

Parameters

name
String

The name of the new virtual network.

addressSpace
String

The address space for the virtual network.

subnetAddressSpaceCidr
String

The address space for the subnet.

Returns

Applies to