IWithNetwork.WithNewPrimaryNetwork Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.