Set-AzLocalNetworkGateway

修改局域網路閘道。

語法

PowerShell
Set-AzLocalNetworkGateway
   -LocalNetworkGateway <PSLocalNetworkGateway>
   [-AddressPrefix <System.Collections.Generic.List`1[System.String]>]
   [-Asn <UInt32>]
   [-BgpPeeringAddress <String>]
   [-PeerWeight <Int32>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Set-AzLocalNetworkGateway Cmdlet 會修改局域網路網關。

範例

1:

PowerShell

參數

-AddressPrefix

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

-AsJob

在背景執行 Cmdlet

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

-Asn

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

-BgpPeeringAddress

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

-DefaultProfile

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

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

-LocalNetworkGateway

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

-PeerWeight

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

輸入

PSLocalNetworkGateway

參數 'LocalNetworkGateway' 接受管線中類型 'PSLocalNetworkGateway' 的值

輸出