VirtualMachine.DefinitionStages.WithNetwork 接口

定义

The stage of a virtual machine definition allowing to specify a virtual network with the new primary network interface.

public interface WithNetwork extends VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface

继承成员

方法

withExistingPrimaryNetwork(Network network)

Associates an existing virtual network with the virtual machine's primary network interface.

withNewPrimaryNetwork(Creatable<Network> creatable)

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

withNewPrimaryNetwork(String addressSpace)

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.

适用于