New-AzNetworkCloudNetworkAttachmentObject

NetworkAttachment のメモリ内オブジェクトを作成します。

構文

Default (既定)

New-AzNetworkCloudNetworkAttachmentObject
    -AttachedNetworkId <String>
    -IPAllocationMethod <String>
    [-DefaultGateway <String>]
    [-Ipv4Address <String>]
    [-Ipv6Address <String>]
    [-Name <String>]
    [<CommonParameters>]

説明

NetworkAttachment のメモリ内オブジェクトを作成します。

例 1: NetworkAttachment のメモリ内オブジェクトを作成します。

New-AzNetworkCloudNetworkAttachmentObject -AttachedNetworkId "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName" -IPAllocationMethod "Dynamic" -DefaultGateway "True" -Ipv4Address "198.51.100.1" -Ipv6Address "2001:0db8:0000:0000:0000:0000:0000:0001" -Name "netAttachName01"
AttachedNetworkId                                                                                                        DefaultGateway IPAllocationMethod Ipv4Address  Ipv6Address
-----------------                                                                                                        -------------- ------------------ -----------  -----------
/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName True           Dynamic            198.51.100.1 2001:0db8:0000:0000:0000:0000…

NetworkAttachment のメモリ内オブジェクトを作成します。

パラメーター

-AttachedNetworkId

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

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-DefaultGateway

これが既定のゲートウェイであるかどうかを示すインジケーター。 1 台のマシンに対して接続されているネットワーク (CloudServicesNetwork 添付ファイルを含む) の 1 つだけを True として指定できます。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-IPAllocationMethod

仮想マシンの IP 割り当てメカニズム。 動的および静的は、l3Network に対してのみ有効です。また、Disabled を指定することもできます。 それ以外の場合、許可される値は Disabled のみです。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Ipv4Address

仮想マシンの IPv4 アドレス。

    This field is used only if the attached network has IPAllocationType of IPV4 or DualStack.

    If IPAllocationMethod is:
    Static - this field must contain a user specified IPv4 address from within the subnet specified in the attached network.
    Dynamic - this field is read-only, but will be populated with an address from within the subnet specified in the attached network.
    Disabled - this field will be empty.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Ipv6Address

仮想マシンの IPv6 アドレス。

    This field is used only if the attached network has IPAllocationType of IPV6 or DualStack.

    If IPAllocationMethod is:
    Static - this field must contain an IPv6 address range from within the range specified in the attached network.
    Dynamic - this field is read-only, but will be populated with an range from within the subnet specified in the attached network.
    Disabled - this field will be empty.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

関連付けられているネットワークのインターフェイス名。 指定した場合、ネットワーク添付ファイル名の最大長は 15 文字で、この仮想マシンに固有である必要があります。 ユーザーがこの値を指定しない場合は、ネットワーク リソースの既定のインターフェイス名が使用されます。 CloudServicesNetwork リソースの場合、この名前は無視されます。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

出力

NetworkAttachment