共用方式為


New-AzVirtualApplianceInternetIngressIpsProperty

定義資源的網路虛擬設備因特網輸入IP屬性。

語法

New-AzVirtualApplianceInternetIngressIpsProperty
   -InternetIngressPublicIpId <String[]>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzVirtualApplianceInternetIngressIpsProperty 命令會定義公用IP,這些IP可透過網路虛擬設備資源連結因特網輸入。

範例

範例 1

$IngressIps=New-AzVirtualApplianceInternetIngressIpsProperty -InternetIngressPublicIpId "/subscriptions/{subscriptionid}/resourceGroups/{rgname}/providers/Microsoft.Network/publicIPAddresses/{publicipname}"

建立要與 New-AzNetworkVirtualAppliance 命令搭配使用的 Internet Ingress Property 物件。

範例 2

$IngressIps=New-AzVirtualApplianceInternetIngressIpsProperty -InternetIngressPublicIpId "/subscriptions/{subscriptionid}/resourceGroups/{rgname}/providers/Microsoft.Network/publicIPAddresses/{publicipname}", "/subscriptions/{subscriptionid}/resourceGroups/{rgname}/providers/Microsoft.Network/publicIPAddresses/{publicipname}"

建立因特網輸入屬性物件清單,此物件具有 2 個可連結至網路虛擬設備資源的公用 IP。

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InternetIngressPublicIpId

公用IP的識別碼,可指定為逗號分隔輸入。

類型:String[]
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

PSVirtualApplianceInternetIngressIpsProperties