Update-AzP2sVpnGateway
Uppdatera en befintlig P2SVpnGateway under VirtualHub för punkt-till-plats-anslutning.
Syntax
Update-AzP2sVpnGateway
-ResourceGroupName <String>
-Name <String>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-ResourceGroupName <String>
-Name <String>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
[-VpnServerConfiguration <PSVpnServerConfiguration>]
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-ResourceGroupName <String>
-Name <String>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
-VpnServerConfigurationId <String>
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-InputObject <PSP2SVpnGateway>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-InputObject <PSP2SVpnGateway>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
[-VpnServerConfiguration <PSVpnServerConfiguration>]
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-InputObject <PSP2SVpnGateway>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
-VpnServerConfigurationId <String>
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-ResourceId <String>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-ResourceId <String>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
[-VpnServerConfiguration <PSVpnServerConfiguration>]
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzP2sVpnGateway
-ResourceId <String>
[-VpnClientAddressPool <String[]>]
[-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
-VpnServerConfigurationId <String>
[-VpnGatewayScaleUnit <UInt32>]
[-CustomDnsServer <String[]>]
[-RoutingConfiguration <PSRoutingConfiguration>]
[-EnableInternetSecurityFlag]
[-DisableInternetSecurityFlag]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Med cmdleten Update-AzP2sVpnGateway kan du uppdatera en befintlig P2SVpnGateway under VirtualHub med nya VpnClientAddressPool eller ny VpnServerConfiguration eller ändring av VpnGatewayScaleUnit.
Exempel
Exempel 1
$vpnClientAddressSpaces = New-Object string[] 1
$vpnClientAddressSpaces[0] = "101.10.0.0/16"
Update-AzP2sVpnGateway -ResourceGroupName P2SCortexGATesting -Name 683482ade8564515aed4b8448c9757ea-westus-gw -VpnClientAddressPool $vpnClientAddressSpaces -EnableInternetSecurityFlag
ResourceGroupName : P2SCortexGATesting
Name : 683482ade8564515aed4b8448c9757ea-westus-gw
Id : /subscriptions/b1f1deed-af60-4bab-9223-65d340462e24/resourceGroups/P2SCortexGATesting/providers/Microsoft.Network/p2sVpnGateways/683482ade8564515a
ed4b8448c9757ea-westus-gw
Location : westus
VpnGatewayScaleUnit : 1
VirtualHub : /subscriptions/b1f1deed-af60-4bab-9223-65d340462e24/resourceGroups/P2SCortexGATesting/providers/Microsoft.Network/virtualHubs/NilamdWestUsVirtualH
ub
VpnServerConfiguration : /subscriptions/b1f1deed-af60-4bab-9223-65d340462e24/resourceGroups/P2SCortexGATesting/providers/Microsoft.Network/vpnServerConfigurations/NilamdWe
stUsConfig
VpnServerConfigurationLocation :
VpnClientConnectionHealth : null
Type : Microsoft.Network/p2sVpnGateways
ProvisioningState : Succeeded
P2SConnectionConfigurations : [
{
"ProvisioningState": "Succeeded",
"VpnClientAddressPool": {
"AddressPrefixes": [
"101.10.0.0/16"
]
},
"EnableInternetSecurity": True,
"RoutingConfiguration": {
"AssociatedRouteTable": {
"Id": "/subscriptions/b1f1deed-af60-4bab-9223-65d340462e24/resourceGroups/P2SCortexGATesting/providers/Microsoft.Network/virtualHubs/WestUsVirtualHub/hubRouteTables/defaultRouteTable"
}
"PropagatedRouteTables": {
"Labels": [],
"Ids": [
{
"Id": "/subscriptions/b1f1deed-af60-4bab-9223-65d340462e24/resourceGroups/P2SCortexGATesting/providers/Microsoft.Network/virtualHubs/WestUsVirtualHub/hubRouteTables/defaultRouteTable"
}
]
},
"VnetRoutes": {
"StaticRoutes": []
}
},
"Name": "P2SConnectionConfigDefault",
"Etag": "W/\"d7debc2f-ccbb-4f00-bddc-42c99b52fda3\"",
"Id": "/subscriptions/b1f1deed-af60-4bab-9223-65d340462e24/resourceGroups/P2SCortexGATesting/providers/Microsoft.Network/p2sVpnGateways/683482
ade8564515aed4b8448c9757ea-westus-gw/p2sConnectionConfigurations/P2SConnectionConfigDefault"
}
]
Med cmdleten Update-AzP2sVpnGateway kan du uppdatera en befintlig P2SVpnGateway under VirtualHub med nya VpnClientAddressPool. När punkt-till-plats-klienten ansluter med denna P2SVpnGateway allokeras en av IP-adressen från den här VpnClientAddressPool till den klienten.
Exempel 2
Uppdatera en befintlig P2SVpnGateway under VirtualHub för punkt-till-plats-anslutning. (automatiskt genererad)
Update-AzP2sVpnGateway -AsJob -Name 00000000-0000-0000-0000-00000000000000000-westus-gw -ResourceGroupName P2SCortexGATesting -VpnClientAddressPool <String[]> -VpnGatewayScaleUnit 1 -VpnServerConfiguration <PSVpnServerConfiguration>
Parametrar
-AsJob
Kör cmdlet i bakgrunden
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Typ: | SwitchParameter |
Alias: | cf |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-CustomDnsServer
Listan över anpassade DNS-servrar.
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 |
-DisableInternetSecurityFlag
Inaktivera internetsäkerhetsflaggan för dessa P2SVpnGateway-anslutningar
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-EnableInternetSecurityFlag
Aktivera internetsäkerhetsflagga för dessa P2SVpnGateway-anslutningar
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-InputObject
P2s vpn gateway-objektet som ska ändras
Typ: | PSP2SVpnGateway |
Alias: | P2SVpnGateway |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
Namnet på P2S vpn-gatewayen.
Typ: | String |
Alias: | ResourceName, P2SVpnGatewayName, GatewayName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-P2SConnectionConfiguration
Listan över P2SConnectionConfigurations som denna P2SVpnGateway måste ha.
Typ: | PSP2SConnectionConfiguration[] |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceGroupName
Resursgruppens namn.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceId
Azure-resurs-ID för P2SVpnGateway som ska ändras.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-RoutingConfiguration
Routningskonfiguration för den här anslutningen
Typ: | PSRoutingConfiguration |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Tag
En hashtable som representerar resurstaggar.
Typ: | Hashtable |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-VpnClientAddressPool
P2S VpnClient AddressPool för denna P2SVpnGateway P2SConnectionConfiguration.
Typ: | String[] |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-VpnGatewayScaleUnit
Skalningsenheten för denna P2SVpnGateway.
Typ: | UInt32 |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-VpnServerConfiguration
VpnServerConfiguration som ska kopplas till denna P2SVpnGateway.
Typ: | PSVpnServerConfiguration |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-VpnServerConfigurationId
ID:t för vpn-serverkonfigurationsobjektet som P2SVpnGateway kopplas till.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-WhatIf
Visar vad som skulle hända om cmdleten körs. Cmdleten körs inte.
Typ: | SwitchParameter |
Alias: | wi |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
System.String Microsoft.Azure.Commands.Network.Models.PSVpnServerConfiguration
Utdata
Relaterade länkar
Azure PowerShell