NetworkAttachment(String, VirtualMachineIPAllocationMethod) コンストラクター

定義

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)

パラメーター

attachedNetworkId
String

仮想マシンに接続されている関連付けられているネットワークのリソース ID。 cloudServicesNetwork、l3Network、l2Network、または trunkedNetwork リソースのいずれかです。

ipAllocationMethod
VirtualMachineIPAllocationMethod

仮想マシンの IP 割り当てメカニズム。 Dynamic と Static は、l3Network に対してのみ有効であり、Disabled も指定できます。 それ以外の場合は、Disabled のみが許可される値です。

例外

attachedNetworkId が null です。

適用対象