Delen via


IWithNetwork Interface

Definition

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

public interface IWithNetwork : Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithPrimaryNetworkInterface
type IWithNetwork = interface
    interface IWithPrimaryNetworkInterface
Public Interface IWithNetwork
Implements IWithPrimaryNetworkInterface
Derived
Implements

Methods

WithExistingPrimaryNetwork(INetwork)

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

WithExistingPrimaryNetworkInterface(INetworkInterface)

Associates an existing network interface with the virtual machine as its primary network interface.

(Inherited from IWithPrimaryNetworkInterface)
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.

WithNewPrimaryNetworkInterface(ICreatable<INetworkInterface>)

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

(Inherited from IWithPrimaryNetworkInterface)

Applies to