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.
Returns
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應