Share via


IWithNetwork.WithExistingPrimaryNetwork(INetwork) Method

Definition

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

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithSubnet WithExistingPrimaryNetwork (Microsoft.Azure.Management.Network.Fluent.INetwork network);
abstract member WithExistingPrimaryNetwork : Microsoft.Azure.Management.Network.Fluent.INetwork -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithSubnet
Public Function WithExistingPrimaryNetwork (network As INetwork) As IWithSubnet

Parameters

network
INetwork

An existing virtual network.

Returns

Applies to