Share via


IWithSubnet.WithSubnet(String) Method

Definition

Associates a subnet with the virtual machine's primary network interface.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithPrivateIP WithSubnet (string name);
abstract member WithSubnet : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithPrivateIP
Public Function WithSubnet (name As String) As IWithPrivateIP

Parameters

name
String

The subnet name.

Returns

Applies to