Condividi tramite


IWithNetwork.WithNewPrimaryNetwork Method

Definition

Overloads

WithNewPrimaryNetwork(ICreatable<INetwork>)

Creates a new virtual network to associate with the virtual machine's primary network interface, based on the provided definition.

WithNewPrimaryNetwork(String)

Creates a new virtual network to associate with the virtual machine's primary network interface. The virtual network will be created in the same resource group and region as of virtual machine, 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>)

Creates a new virtual network to associate with the virtual machine's primary network interface, based on the provided definition.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithPrivateIP 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.Compute.Fluent.VirtualMachine.Definition.IWithPrivateIP
Public Function WithNewPrimaryNetwork (creatable As ICreatable(Of INetwork)) As IWithPrivateIP

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 virtual machine's primary network interface. The virtual network will be created in the same resource group and region as of virtual machine, 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.Compute.Fluent.VirtualMachine.Definition.IWithPrivateIP WithNewPrimaryNetwork (string addressSpace);
abstract member WithNewPrimaryNetwork : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithPrivateIP
Public Function WithNewPrimaryNetwork (addressSpace As String) As IWithPrivateIP

Parameters

addressSpace
String

The address space for the virtual network.

Returns

Applies to