次の方法で共有


Update-AzP2sVpnGateway

ポイント対サイト接続のために、VirtualHub の下にある既存の P2SVpnGateway を更新します。

構文

ByP2SVpnGatewayNameNoVpnServerConfigurationUpdate (既定)

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>]

ByP2SVpnGatewayNameByVpnServerConfigurationObject

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>]

ByP2SVpnGatewayNameByVpnServerConfigurationResourceId

Update-AzP2sVpnGateway
    -ResourceGroupName <String>
    -Name <String>
    -VpnServerConfigurationId <String>
    [-VpnClientAddressPool <String[]>]
    [-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
    [-VpnGatewayScaleUnit <UInt32>]
    [-CustomDnsServer <String[]>]
    [-RoutingConfiguration <PSRoutingConfiguration>]
    [-EnableInternetSecurityFlag]
    [-DisableInternetSecurityFlag]
    [-Tag <Hashtable>]
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByP2SVpnGatewayObjectNoVpnServerConfigurationUpdate

Update-AzP2sVpnGateway
    -InputObject <PSP2SVpnGateway>
    [-VpnClientAddressPool <String[]>]
    [-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
    [-VpnGatewayScaleUnit <UInt32>]
    [-CustomDnsServer <String[]>]
    [-RoutingConfiguration <PSRoutingConfiguration>]
    [-EnableInternetSecurityFlag]
    [-DisableInternetSecurityFlag]
    [-Tag <Hashtable>]
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByP2SVpnGatewayObjectByVpnServerConfigurationObject

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>]

ByP2SVpnGatewayObjectByVpnServerConfigurationResourceId

Update-AzP2sVpnGateway
    -InputObject <PSP2SVpnGateway>
    -VpnServerConfigurationId <String>
    [-VpnClientAddressPool <String[]>]
    [-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
    [-VpnGatewayScaleUnit <UInt32>]
    [-CustomDnsServer <String[]>]
    [-RoutingConfiguration <PSRoutingConfiguration>]
    [-EnableInternetSecurityFlag]
    [-DisableInternetSecurityFlag]
    [-Tag <Hashtable>]
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByP2SVpnGatewayResourceIdNoVpnServerConfigurationUpdate

Update-AzP2sVpnGateway
    -ResourceId <String>
    [-VpnClientAddressPool <String[]>]
    [-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
    [-VpnGatewayScaleUnit <UInt32>]
    [-CustomDnsServer <String[]>]
    [-RoutingConfiguration <PSRoutingConfiguration>]
    [-EnableInternetSecurityFlag]
    [-DisableInternetSecurityFlag]
    [-Tag <Hashtable>]
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByP2SVpnGatewayResourceIdByVpnServerConfigurationObject

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>]

ByP2SVpnGatewayResourceIdByVpnServerConfigurationResourceId

Update-AzP2sVpnGateway
    -ResourceId <String>
    -VpnServerConfigurationId <String>
    [-VpnClientAddressPool <String[]>]
    [-P2SConnectionConfiguration <PSP2SConnectionConfiguration[]>]
    [-VpnGatewayScaleUnit <UInt32>]
    [-CustomDnsServer <String[]>]
    [-RoutingConfiguration <PSRoutingConfiguration>]
    [-EnableInternetSecurityFlag]
    [-DisableInternetSecurityFlag]
    [-Tag <Hashtable>]
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

説明

Update-AzP2sVpnGateway コマンドレットを使用すると、VirtualHub の下にある既存の P2SVpnGateway を、新しい VpnClientAddressPool または新しい VpnServerConfiguration または VpnGatewayScaleUnit の変更で更新できます。

例 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"
                                   }
                                 ]

Update-AzP2sVpnGateway コマンドレットを使用すると、VirtualHub の下にある既存の P2SVpnGateway を新しい VpnClientAddressPool で更新できます。 ポイント対サイト クライアントがこの P2SVpnGateway に接続すると、この VpnClientAddressPool の IP アドレスの 1 つがそのクライアントに割り当てられます。

例 2

ポイント対サイト接続のために、VirtualHub の下にある既存の P2SVpnGateway を更新します。 (autogenerated)

Update-AzP2sVpnGateway -AsJob -Name 00000000-0000-0000-0000-00000000000000000-westus-gw -ResourceGroupName P2SCortexGATesting -VpnClientAddressPool <String[]> -VpnGatewayScaleUnit 1 -VpnServerConfiguration <PSVpnServerConfiguration>

パラメーター

-AsJob

バックグラウンドでコマンドレットを実行する

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

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

パラメーター セット

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

-Confirm

コマンドレットを実行する前に確認を求めるメッセージが表示されます。

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

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

パラメーター セット

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

-CustomDnsServer

カスタム DNS サーバーの一覧。

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

型:

String[]

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

パラメーター セット

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

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

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

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

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

-DisableInternetSecurityFlag

この P2SVpnGateway 接続のインターネット セキュリティ フラグを無効にする

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

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

パラメーター セット

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

-EnableInternetSecurityFlag

この P2SVpnGateway 接続のインターネット セキュリティ フラグを有効にする

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

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

パラメーター セット

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

-InputObject

変更する p2s VPN ゲートウェイ オブジェクト

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

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

パラメーター セット

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

-Name

P2S VPN ゲートウェイ名。

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

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:ResourceName, P2SVpnGatewayName, ゲートウェイ名

パラメーター セット

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

-P2SConnectionConfiguration

この P2SVpnGateway に必要な P2SConnectionConfigurations の一覧。

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

型:

PSP2SConnectionConfiguration[]

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

パラメーター セット

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

-ResourceGroupName

リソース グループ名。

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

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

パラメーター セット

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

-ResourceId

変更する P2SVpnGateway の Azure リソース ID。

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

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

パラメーター セット

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

-RoutingConfiguration

この接続のルーティング構成

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

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

パラメーター セット

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

-Tag

リソース タグを表すハッシュテーブル。

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

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

パラメーター セット

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

-VpnClientAddressPool

この P2SVpnGateway P2SConnectionConfiguration の P2S VpnClient AddressPool。

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

型:

String[]

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

パラメーター セット

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

-VpnGatewayScaleUnit

この P2SVpnGateway のスケール ユニット。

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

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

パラメーター セット

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

-VpnServerConfiguration

この P2SVpnGateway に接続する VpnServerConfiguration。

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

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

パラメーター セット

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

-VpnServerConfigurationId

この P2SVpnGateway がアタッチされる Vpn サーバー構成オブジェクトの ID。

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

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

パラメーター セット

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

-WhatIf

コマンドレットを実行した場合の動作を示します。 コマンドレットは実行されません。

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

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:ウィスコンシン

パラメーター セット

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

CommonParameters

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

入力

PSP2SVpnGateway

System.String Microsoft.Azure.Commands.Network.Models.PSVpnServerConfiguration

出力

PSP2SVpnGateway