Set-AzLocalNetworkGateway
Ändrar en lokal nätverksgateway.
Syntax
Set-AzLocalNetworkGateway
-LocalNetworkGateway <PSLocalNetworkGateway>
[-AddressPrefix <String[]>]
[-Asn <UInt32>]
[-BgpPeeringAddress <String>]
[-PeerWeight <Int32>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Set-AzLocalNetworkGateway ändrar en lokal nätverksgateway.
Exempel
Exempel 1
Ange konfiguration för en befintlig gateway
$lgw = Get-AzLocalNetworkGateway -Name myLocalGW -ResourceGroupName myRG
Set-AzLocalNetworkGateway -LocalNetworkGateway $lgw
Name : myLocalGW
ResourceGroupName : TestRG1
Location : westus
Id : /subscriptions/81ab786c-56eb-4a4d-bb5f-f60329772466/resourceGroups/TestRG1/providers/Microso
ft.Network/localNetworkGateways/myLocalGW
Etag : W/"d2de6968-315e-411d-a4b8-a8c335abe61b"
ResourceGuid : 393acf8b-dbb8-4b08-a9ea-c714570710e1
ProvisioningState : Succeeded
Tags :
GatewayIpAddress : 1.2.3.4
LocalNetworkAddressSpace : {
"AddressPrefixes": []
}
BgpSettings : null
Parametrar
-AddressPrefix
Typ: | String[] |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-AsJob
Kör cmdlet i bakgrunden
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Asn
Typ: | UInt32 |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-BgpPeeringAddress
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-LocalNetworkGateway
Typ: | PSLocalNetworkGateway |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-PeerWeight
Typ: | Int32 |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
PSLocalNetworkGateway
String[]
UInt32
String
Int32
Utdata
PSLocalNetworkGateway