Condividi tramite


IWithPrimaryNetwork.WithNewPrimaryNetwork Method

Definition

Overloads

WithNewPrimaryNetwork(ICreatable<INetwork>)

Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition.

WithNewPrimaryNetwork(String)

Creates a new virtual network to associate with the network interface's primary IP configuration. The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

WithNewPrimaryNetwork(String, String)

Creates a new virtual network to associate with the network interface's primary IP configuration. The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

WithNewPrimaryNetwork(ICreatable<INetwork>)

Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition.

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

Parameters

creatable
ICreatable<INetwork>

A creatable definition for a new virtual network.

Returns

Applies to

WithNewPrimaryNetwork(String)

Creates a new virtual network to associate with the network interface's primary IP configuration. The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

public Microsoft.Azure.Management.Network.Fluent.NetworkInterface.Definition.IWithPrimaryPrivateIP WithNewPrimaryNetwork (string addressSpace);
abstract member WithNewPrimaryNetwork : string -> Microsoft.Azure.Management.Network.Fluent.NetworkInterface.Definition.IWithPrimaryPrivateIP
Public Function WithNewPrimaryNetwork (addressSpace As String) As IWithPrimaryPrivateIP

Parameters

addressSpace
String

The address space for the virtual network.

Returns

Applies to

WithNewPrimaryNetwork(String, String)

Creates a new virtual network to associate with the network interface's primary IP configuration. The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

public Microsoft.Azure.Management.Network.Fluent.NetworkInterface.Definition.IWithPrimaryPrivateIP WithNewPrimaryNetwork (string name, string addressSpace);
abstract member WithNewPrimaryNetwork : string * string -> Microsoft.Azure.Management.Network.Fluent.NetworkInterface.Definition.IWithPrimaryPrivateIP
Public Function WithNewPrimaryNetwork (name As String, addressSpace As String) As IWithPrimaryPrivateIP

Parameters

name
String

The name of the new virtual network.

addressSpace
String

The address space for rhe virtual network.

Returns

Applies to