次の方法で共有


NetworkAttachment Constructors

Definition

Overloads

NetworkAttachment(ResourceIdentifier, VirtualMachineIPAllocationMethod)

Initializes a new instance of NetworkAttachment.

NetworkAttachment(String, VirtualMachineIPAllocationMethod)

Initializes a new instance of NetworkAttachment.

NetworkAttachment(ResourceIdentifier, VirtualMachineIPAllocationMethod)

Source:
NetworkAttachment.cs

Initializes a new instance of NetworkAttachment.

public NetworkAttachment (Azure.Core.ResourceIdentifier attachedNetworkArmId, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIPAllocationMethod ipAllocationMethod);
new Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment : Azure.Core.ResourceIdentifier * Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIPAllocationMethod -> Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment
Public Sub New (attachedNetworkArmId As ResourceIdentifier, ipAllocationMethod As VirtualMachineIPAllocationMethod)

Parameters

attachedNetworkArmId
ResourceIdentifier

The resource ID of the associated network attached to the virtual machine. It can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources.

ipAllocationMethod
VirtualMachineIPAllocationMethod

The IP allocation mechanism for the virtual machine. Dynamic and Static are only valid for l3Network which may also specify Disabled. Otherwise, Disabled is the only permitted value.

Exceptions

attachedNetworkArmId is null.

Applies to

NetworkAttachment(String, VirtualMachineIPAllocationMethod)

Source:
NetworkAttachment.cs
Source:
NetworkAttachment.cs

Initializes a new instance of NetworkAttachment.

public NetworkAttachment (string attachedNetworkId, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIPAllocationMethod ipAllocationMethod);
new Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment : string * Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIPAllocationMethod -> Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment
Public Sub New (attachedNetworkId As String, ipAllocationMethod As VirtualMachineIPAllocationMethod)

Parameters

attachedNetworkId
String

The resource ID of the associated network attached to the virtual machine. It can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources.

ipAllocationMethod
VirtualMachineIPAllocationMethod

The IP allocation mechanism for the virtual machine. Dynamic and Static are only valid for l3Network which may also specify Disabled. Otherwise, Disabled is the only permitted value.

Exceptions

attachedNetworkId is null.

Applies to