你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
- 最新
- 2026-03-01
- 2026-01-01
- 2025-09-01
- 2025-07-01
- 2025-05-01
- 2025-03-01
- 2025-01-01
- 2024-10-01
- 2024-07-01
- 2024-05-01
- 2024-03-01
- 2024-01-01
- 2023-11-01
- 2023-09-01
- 2023-06-01
- 2023-05-01
- 2023-04-01
- 2023-02-01
- 2022-11-01
- 2022-09-01
- 2022-07-01
- 2022-05-01
- 2022-01-01
- 2021-08-01
- 2021-05-01
- 2021-03-01
- 2021-02-01
- 2020-11-01
- 2020-08-01
- 2020-07-01
- 2020-06-01
- 2020-05-01
- 2020-04-01
- 2020-03-01
- 2019-12-01
- 2019-11-01
- 2019-09-01
- 2019-08-01
- 2019-07-01
- 2019-06-01
- 2019-04-01
- 2019-02-01
- 2018-12-01
- 2018-11-01
- 2018-10-01
- 2018-08-01
- 2018-07-01
- 2018-06-01
- 2018-04-01
Bicep 资源定义
可以使用目标操作部署 vpnGateways 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
用法示例
Bicep 示例
在虚拟中心内部署 VPN 网关的基本示例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource virtualHub 'Microsoft.Network/virtualHubs@2022-07-01' = {
name: resourceName
location: location
properties: {
addressPrefix: '10.0.0.0/24'
hubRoutingPreference: 'ExpressRoute'
virtualRouterAutoScaleConfiguration: {
minCapacity: 2
}
virtualWan: {
id: virtualWan.id
}
}
}
resource virtualWan 'Microsoft.Network/virtualWans@2022-07-01' = {
name: resourceName
location: location
properties: {
allowBranchToBranchTraffic: true
disableVpnEncryption: false
office365LocalBreakoutCategory: 'None'
type: 'Standard'
}
}
resource vpnGateway 'Microsoft.Network/vpnGateways@2022-07-01' = {
name: resourceName
location: location
properties: {
enableBgpRouteTranslationForNat: false
isRoutingPreferenceInternet: false
virtualHub: {
id: virtualHub.id
}
vpnGatewayScaleUnit: 1
}
}
Azure 验证模块
以下 Azure 验证模块 可用于部署此资源类型。
| 模块 | 描述 |
|---|---|
| VPN 网关 | VPN 网关的 AVM 资源模块 |
Azure 快速入门示例
以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。
| Bicep 文件 | 描述 |
|---|---|
| 创建虚拟 WAN 资源 | 使用此模板可以创建虚拟 WAN 资源,包括虚拟 WAN、虚拟中心、VPN 网关、VPN 站点和 VPN Connecton。 |
资源格式
若要创建 Microsoft.Network/vpnGateways 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Network/vpnGateways@2023-09-01' = {
location: 'string'
name: 'string'
properties: {
bgpSettings: {
asn: int
bgpPeeringAddress: 'string'
bgpPeeringAddresses: [
{
customBgpIpAddresses: [
'string'
]
ipconfigurationId: 'string'
}
]
peerWeight: int
}
connections: [
{
id: 'string'
name: 'string'
properties: {
connectionBandwidth: int
dpdTimeoutSeconds: int
enableBgp: bool
enableInternetSecurity: bool
enableRateLimiting: bool
ipsecPolicies: [
{
dhGroup: 'string'
ikeEncryption: 'string'
ikeIntegrity: 'string'
ipsecEncryption: 'string'
ipsecIntegrity: 'string'
pfsGroup: 'string'
saDataSizeKilobytes: int
saLifeTimeSeconds: int
}
]
remoteVpnSite: {
id: 'string'
}
routingConfiguration: {
associatedRouteTable: {
id: 'string'
}
inboundRouteMap: {
id: 'string'
}
outboundRouteMap: {
id: 'string'
}
propagatedRouteTables: {
ids: [
{
id: 'string'
}
]
labels: [
'string'
]
}
vnetRoutes: {
staticRoutes: [
{
addressPrefixes: [
'string'
]
name: 'string'
nextHopIpAddress: 'string'
}
]
staticRoutesConfig: {
vnetLocalRouteOverrideCriteria: 'string'
}
}
}
routingWeight: int
sharedKey: 'string'
trafficSelectorPolicies: [
{
localAddressRanges: [
'string'
]
remoteAddressRanges: [
'string'
]
}
]
useLocalAzureIpAddress: bool
usePolicyBasedTrafficSelectors: bool
vpnConnectionProtocolType: 'string'
vpnLinkConnections: [
{
id: 'string'
name: 'string'
properties: {
connectionBandwidth: int
egressNatRules: [
{
id: 'string'
}
]
enableBgp: bool
enableRateLimiting: bool
ingressNatRules: [
{
id: 'string'
}
]
ipsecPolicies: [
{
dhGroup: 'string'
ikeEncryption: 'string'
ikeIntegrity: 'string'
ipsecEncryption: 'string'
ipsecIntegrity: 'string'
pfsGroup: 'string'
saDataSizeKilobytes: int
saLifeTimeSeconds: int
}
]
routingWeight: int
sharedKey: 'string'
useLocalAzureIpAddress: bool
usePolicyBasedTrafficSelectors: bool
vpnConnectionProtocolType: 'string'
vpnGatewayCustomBgpAddresses: [
{
customBgpIpAddress: 'string'
ipConfigurationId: 'string'
}
]
vpnLinkConnectionMode: 'string'
vpnSiteLink: {
id: 'string'
}
}
}
]
}
}
]
enableBgpRouteTranslationForNat: bool
isRoutingPreferenceInternet: bool
natRules: [
{
id: 'string'
name: 'string'
properties: {
externalMappings: [
{
addressSpace: 'string'
portRange: 'string'
}
]
internalMappings: [
{
addressSpace: 'string'
portRange: 'string'
}
]
ipConfigurationId: 'string'
mode: 'string'
type: 'string'
}
}
]
virtualHub: {
id: 'string'
}
vpnGatewayScaleUnit: int
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.Network/vpnGateways
| 名字 | 描述 | 价值 |
|---|---|---|
| 位置 | 资源位置。 | 字符串 |
| 名字 | 资源名称 | string (必需) |
| 性能 | VPN 网关的属性。 | VpnGatewayProperties |
| 标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
Bgp设置
| 名字 | 描述 | 价值 |
|---|---|---|
| ASN | BGP 扬声器的 ASN。 | int 约束: 最小值 = 0 最大值 = 4294967295 |
| bgp对等地址 | 此 BGP 扬声器的 BGP 对等互连地址和 BGP 标识符。 | 字符串 |
| bgpPeering地址 | 具有虚拟网络网关 IP 配置 ID 的 BGP 对等互连地址。 | IPConfigurationBgpPeeringAddress[] |
| peerWeight | 添加到从此 BGP 扬声器中学习的路由的权重。 | 整数 (int) |
GatewayCustomBgpIpAddressIpConfiguration
| 名字 | 描述 | 价值 |
|---|---|---|
| 自定义 BgpIpAddress | 属于 IpconfigurationId 的自定义 BgpPeeringAddress。 | string (必需) |
| ipConfigurationId (ip配置 ID) | 属于网关的 ipconfiguration 的 IpconfigurationId。 | string (必需) |
IPConfigurationBgpPeeringAddress
| 名字 | 描述 | 价值 |
|---|---|---|
| customBgpIp地址 | 属于 IP 配置的自定义 BGP 对等互连地址的列表。 | 字符串[] |
| ipconfigurationId | 属于网关的 IP 配置的 ID。 | 字符串 |
IpsecPolicy 策略
| 名字 | 描述 | 价值 |
|---|---|---|
| dhGroup 公司 | IKE 阶段 1 中用于初始 SA 的 DH 组。 | “DHGroup1” “DHGroup14” “DHGroup2” “DHGroup2048” “DHGroup24” “ECP256” “ECP384” “无”(必需) |
| ike加密 | IKE 加密算法(IKE 阶段 2)。 | “AES128” “AES192” “AES256” “DES” “DES3” “GCMAES128” “GCMAES256”(必需) |
| ike诚信 | IKE 完整性算法(IKE 阶段 2)。 | “GCMAES128” “GCMAES256” “MD5” “SHA1” “SHA256” “SHA384”(必需) |
| ipsec加密 | IPSec 加密算法(IKE 阶段 1)。 | “AES128” “AES192” “AES256” “DES” “DES3” “GCMAES128” “GCMAES192” “GCMAES256” “无”(必需) |
| ipsec完整性 | IPSec 完整性算法(IKE 阶段 1)。 | “GCMAES128” “GCMAES192” “GCMAES256” “MD5” “SHA1” “SHA256”(必需) |
| pfs集团 | IKE 阶段 2 中使用的 Pfs 组用于新的子 SA。 | “ECP256” “ECP384” “None” “PFS1” “PFS14” “PFS2” “PFS2048” “PFS24” “PFSMM”(必需) |
| saDataSize千字节 | IPSec 安全关联(也称为快速模式或阶段 2 SA)有效负载大小(以 KB 为单位),用于站点到站点 VPN 隧道。 | int (必需) |
| saLifeTimeSeconds | 站点到站点 VPN 隧道的 IPSec 安全关联(也称为快速模式或阶段 2 SA)生存期(以秒为单位)。 | int (必需) |
传播路由表
| 名字 | 描述 | 价值 |
|---|---|---|
| IDS | 所有 RouteTable 的资源 ID 列表。 | 子资源[] |
| 标签 | 标签列表。 | 字符串[] |
资源标签
| 名字 | 描述 | 价值 |
|---|
路由配置
| 名字 | 描述 | 价值 |
|---|---|---|
| 关联的路由表 | 与此 RoutingConfiguration 关联的资源 ID RouteTable。 | 子资源 |
| inboundRouteMap (入站路由地图) | 与此 RoutingConfiguration 关联的 RouteMap 的资源 ID,用于入站学习的路由。 | 子资源 |
| outboundRouteMap | 与此 RoutingConfiguration 关联的RouteMap 的资源 ID,用于出站播发路由。 | 子资源 |
| propagated路由表 | 要向其播发路由的 RouteTable 列表。 | 传播路由表 |
| vnetRoutes | 控制从 VirtualHub 到虚拟网络连接的路由的路由列表。 | VnetRoute |
静态路由
| 名字 | 描述 | 价值 |
|---|---|---|
| address前缀 | 所有地址前缀的列表。 | 字符串[] |
| 名字 | 在 VnetRoute 中唯一的 StaticRoute 的名称。 | 字符串 |
| nextHopIp地址 | 下一跃点的 IP 地址。 | 字符串 |
静态路由配置
| 名字 | 描述 | 价值 |
|---|---|---|
| vnetLocalRouteOverrideCriteria | 参数,用于确定辐射 vnet 中的 NVA 是否为辐射中具有目标的流量绕过。 | “Contains” “Equal” |
子资源
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
TrafficSelectorPolicy 的
| 名字 | 描述 | 价值 |
|---|---|---|
| localAddress范围 | CIDR 格式的本地地址空间的集合。 | string[] (必需) |
| remoteAddress范围 | 采用 CIDR 格式的远程地址空间集合。 | string[] (必需) |
VnetRoute
| 名字 | 描述 | 价值 |
|---|---|---|
| static路由 | 所有静态路由的列表。 | StaticRoute[] |
| staticRoutesConfig | 此 HubVnetConnection 上的静态路由的配置。 | 静态路由配置 |
Vpn连接
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VPN 连接的属性。 | VpnConnection属性 |
VpnConnection属性
| 名字 | 描述 | 价值 |
|---|---|---|
| connectionBandwidth (连接带宽) | 预期带宽(以 MBPS 为单位)。 | 整数 (int) |
| dpdTimeoutSeconds | VPN 连接的 DPD 超时(以秒为单位)。 | 整数 (int) |
| 启用 Bgp | EnableBgp 标志。 | 布尔 |
| enableInternetSecurity | 启用 Internet 安全性。 | 布尔 |
| enableRateLimiting 函数 | EnableBgp 标志。 | 布尔 |
| ipsec策略 | 此连接要考虑的 IPSec 策略。 | IpsecPolicy[] |
| remoteVpnSite 网站 | 连接的 VPN 站点的 ID。 | 子资源 |
| routingConfiguration | 路由配置,指示此连接上关联的路由表和传播的路由表。 | 路由配置 |
| routingWeight | VPN 连接的路由权重。 | 整数 (int) |
| 共享密钥 | 用于 VPN 连接的 SharedKey。 | 字符串 |
| trafficSelector策略 | 此连接要考虑的流量选择器策略。 | TrafficSelectorPolicy[] |
| 使用LocalAzureIpAddress | 使用本地 Azure IP 启动连接。 | 布尔 |
| usePolicyBasedTrafficSelectors | 启用基于策略的流量选择器。 | 布尔 |
| vpnConnectionProtocolType | 用于此连接的连接协议。 | “IKEv1” “IKEv2” |
| vpnLink连接 | 指向网关的所有 VPN 站点链接连接的列表。 | VpnSiteLinkConnection[] |
VpnGatewayNatRule
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VpnGateway NAT 规则的属性。 | VpnGatewayNatRuleProperties |
VpnGatewayNatRuleProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| externalMappings (外部映射) | NAT 的专用 IP 地址外部映射。 | VpnNatRuleMapping[] |
| internalMappings | NAT 的专用 IP 地址内部映射。 | VpnNatRuleMapping[] |
| ipConfigurationId (ip配置 ID) | 此 NAT 规则适用的 IP 配置 ID。 | 字符串 |
| 模式 | VPN NAT 的源 NAT 方向。 | “EgressSnat” “IngressSnat” |
| 类型 | VPN NAT 的 NAT 规则的类型。 | “Dynamic” “Static” |
VpnGatewayProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| bgp设置 | 本地网络网关的 BGP 扬声器设置。 | Bgp设置 |
| 连接 | 指向网关的所有 VPN 连接的列表。 | VpnConnection[] |
| enableBgpRouteTranslationForNat | 在此 VpnGateway 上为 NAT 启用 BGP 路由转换。 | 布尔 |
| isRoutingPreferenceInternet | 为 VpnGateway 的公共 IP 接口启用路由首选项属性。 | 布尔 |
| nat规则 | 与网关关联的所有 nat 规则的列表。 | VpnGatewayNatRule[] |
| 虚拟中心 | 网关所属的 VirtualHub。 | 子资源 |
| vpnGatewayScaleUnit | 此 VPN 网关的缩放单元。 | 整数 (int) |
VpnNatRuleMapping
| 名字 | 描述 | 价值 |
|---|---|---|
| 地址空间 | Vpn NatRule 映射的地址空间。 | 字符串 |
| 端口范围 | Vpn NatRule 映射的端口范围。 | 字符串 |
VpnSiteLinkConnection
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VPN 站点链接连接的属性。 | VpnSiteLinkConnectionProperties |
VpnSiteLinkConnectionProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| connectionBandwidth (连接带宽) | 预期带宽(以 MBPS 为单位)。 | 整数 (int) |
| 出口 NatRules | 出口 NatRules 列表。 | 子资源[] |
| 启用 Bgp | EnableBgp 标志。 | 布尔 |
| enableRateLimiting 函数 | EnableBgp 标志。 | 布尔 |
| 入口 NatRules | 入口 NatRules 列表。 | 子资源[] |
| ipsec策略 | 此连接要考虑的 IPSec 策略。 | IpsecPolicy[] |
| routingWeight | VPN 连接的路由权重。 | 整数 (int) |
| 共享密钥 | 用于 VPN 连接的 SharedKey。 | 字符串 |
| 使用LocalAzureIpAddress | 使用本地 Azure IP 启动连接。 | 布尔 |
| usePolicyBasedTrafficSelectors | 启用基于策略的流量选择器。 | 布尔 |
| vpnConnectionProtocolType | 用于此连接的连接协议。 | “IKEv1” “IKEv2” |
| vpnGatewayCustomBgp地址 | 此连接使用的 vpnGatewayCustomBgpAddresses。 | GatewayCustomBgpIpAddressIpConfiguration[] |
| vpnLink连接模式 | Vpn 链接连接模式。 | “Default” “InitiatorOnly” “ResponderOnly” |
| vpnSite链接 | 连接的 VPN 站点链接的 ID。 | 子资源 |
ARM 模板资源定义
可以使用目标操作部署 vpnGateways 资源类型:
用法示例
Azure 快速入门模板
以下 Azure 快速入门模板 部署此资源类型。
| 模板 | 描述 |
|---|---|
|
Azure 虚拟 WAN (vWAN) 多中心部署 |
使用此模板可以创建 Azure 虚拟 WAN(vWAN)多中心部署,包括所有网关和 VNET 连接。 |
| 使用自定义路由表 Azure vWAN 多中心部署 |
使用此模板可以创建 Azure 虚拟 WAN(vWAN)多中心部署,包括所有网关和 VNET 连接,并演示路由表用于自定义路由的用法。 |
|
创建虚拟 WAN 资源 |
使用此模板可以创建虚拟 WAN 资源,包括虚拟 WAN、虚拟中心、VPN 网关、VPN 站点和 VPN Connecton。 |
资源格式
若要创建 Microsoft.Network/vpnGateways 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.Network/vpnGateways",
"apiVersion": "2023-09-01",
"name": "string",
"location": "string",
"properties": {
"bgpSettings": {
"asn": "int",
"bgpPeeringAddress": "string",
"bgpPeeringAddresses": [
{
"customBgpIpAddresses": [ "string" ],
"ipconfigurationId": "string"
}
],
"peerWeight": "int"
},
"connections": [
{
"id": "string",
"name": "string",
"properties": {
"connectionBandwidth": "int",
"dpdTimeoutSeconds": "int",
"enableBgp": "bool",
"enableInternetSecurity": "bool",
"enableRateLimiting": "bool",
"ipsecPolicies": [
{
"dhGroup": "string",
"ikeEncryption": "string",
"ikeIntegrity": "string",
"ipsecEncryption": "string",
"ipsecIntegrity": "string",
"pfsGroup": "string",
"saDataSizeKilobytes": "int",
"saLifeTimeSeconds": "int"
}
],
"remoteVpnSite": {
"id": "string"
},
"routingConfiguration": {
"associatedRouteTable": {
"id": "string"
},
"inboundRouteMap": {
"id": "string"
},
"outboundRouteMap": {
"id": "string"
},
"propagatedRouteTables": {
"ids": [
{
"id": "string"
}
],
"labels": [ "string" ]
},
"vnetRoutes": {
"staticRoutes": [
{
"addressPrefixes": [ "string" ],
"name": "string",
"nextHopIpAddress": "string"
}
],
"staticRoutesConfig": {
"vnetLocalRouteOverrideCriteria": "string"
}
}
},
"routingWeight": "int",
"sharedKey": "string",
"trafficSelectorPolicies": [
{
"localAddressRanges": [ "string" ],
"remoteAddressRanges": [ "string" ]
}
],
"useLocalAzureIpAddress": "bool",
"usePolicyBasedTrafficSelectors": "bool",
"vpnConnectionProtocolType": "string",
"vpnLinkConnections": [
{
"id": "string",
"name": "string",
"properties": {
"connectionBandwidth": "int",
"egressNatRules": [
{
"id": "string"
}
],
"enableBgp": "bool",
"enableRateLimiting": "bool",
"ingressNatRules": [
{
"id": "string"
}
],
"ipsecPolicies": [
{
"dhGroup": "string",
"ikeEncryption": "string",
"ikeIntegrity": "string",
"ipsecEncryption": "string",
"ipsecIntegrity": "string",
"pfsGroup": "string",
"saDataSizeKilobytes": "int",
"saLifeTimeSeconds": "int"
}
],
"routingWeight": "int",
"sharedKey": "string",
"useLocalAzureIpAddress": "bool",
"usePolicyBasedTrafficSelectors": "bool",
"vpnConnectionProtocolType": "string",
"vpnGatewayCustomBgpAddresses": [
{
"customBgpIpAddress": "string",
"ipConfigurationId": "string"
}
],
"vpnLinkConnectionMode": "string",
"vpnSiteLink": {
"id": "string"
}
}
}
]
}
}
],
"enableBgpRouteTranslationForNat": "bool",
"isRoutingPreferenceInternet": "bool",
"natRules": [
{
"id": "string",
"name": "string",
"properties": {
"externalMappings": [
{
"addressSpace": "string",
"portRange": "string"
}
],
"internalMappings": [
{
"addressSpace": "string",
"portRange": "string"
}
],
"ipConfigurationId": "string",
"mode": "string",
"type": "string"
}
}
],
"virtualHub": {
"id": "string"
},
"vpnGatewayScaleUnit": "int"
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.Network/vpnGateways
| 名字 | 描述 | 价值 |
|---|---|---|
| apiVersion | API 版本 | '2023-09-01' |
| 位置 | 资源位置。 | 字符串 |
| 名字 | 资源名称 | string (必需) |
| 性能 | VPN 网关的属性。 | VpnGatewayProperties |
| 标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
| 类型 | 资源类型 | “Microsoft.Network/vpnGateways” |
Bgp设置
| 名字 | 描述 | 价值 |
|---|---|---|
| ASN | BGP 扬声器的 ASN。 | int 约束: 最小值 = 0 最大值 = 4294967295 |
| bgp对等地址 | 此 BGP 扬声器的 BGP 对等互连地址和 BGP 标识符。 | 字符串 |
| bgpPeering地址 | 具有虚拟网络网关 IP 配置 ID 的 BGP 对等互连地址。 | IPConfigurationBgpPeeringAddress[] |
| peerWeight | 添加到从此 BGP 扬声器中学习的路由的权重。 | 整数 (int) |
GatewayCustomBgpIpAddressIpConfiguration
| 名字 | 描述 | 价值 |
|---|---|---|
| 自定义 BgpIpAddress | 属于 IpconfigurationId 的自定义 BgpPeeringAddress。 | string (必需) |
| ipConfigurationId (ip配置 ID) | 属于网关的 ipconfiguration 的 IpconfigurationId。 | string (必需) |
IPConfigurationBgpPeeringAddress
| 名字 | 描述 | 价值 |
|---|---|---|
| customBgpIp地址 | 属于 IP 配置的自定义 BGP 对等互连地址的列表。 | 字符串[] |
| ipconfigurationId | 属于网关的 IP 配置的 ID。 | 字符串 |
IpsecPolicy 策略
| 名字 | 描述 | 价值 |
|---|---|---|
| dhGroup 公司 | IKE 阶段 1 中用于初始 SA 的 DH 组。 | “DHGroup1” “DHGroup14” “DHGroup2” “DHGroup2048” “DHGroup24” “ECP256” “ECP384” “无”(必需) |
| ike加密 | IKE 加密算法(IKE 阶段 2)。 | “AES128” “AES192” “AES256” “DES” “DES3” “GCMAES128” “GCMAES256”(必需) |
| ike诚信 | IKE 完整性算法(IKE 阶段 2)。 | “GCMAES128” “GCMAES256” “MD5” “SHA1” “SHA256” “SHA384”(必需) |
| ipsec加密 | IPSec 加密算法(IKE 阶段 1)。 | “AES128” “AES192” “AES256” “DES” “DES3” “GCMAES128” “GCMAES192” “GCMAES256” “无”(必需) |
| ipsec完整性 | IPSec 完整性算法(IKE 阶段 1)。 | “GCMAES128” “GCMAES192” “GCMAES256” “MD5” “SHA1” “SHA256”(必需) |
| pfs集团 | IKE 阶段 2 中使用的 Pfs 组用于新的子 SA。 | “ECP256” “ECP384” “None” “PFS1” “PFS14” “PFS2” “PFS2048” “PFS24” “PFSMM”(必需) |
| saDataSize千字节 | IPSec 安全关联(也称为快速模式或阶段 2 SA)有效负载大小(以 KB 为单位),用于站点到站点 VPN 隧道。 | int (必需) |
| saLifeTimeSeconds | 站点到站点 VPN 隧道的 IPSec 安全关联(也称为快速模式或阶段 2 SA)生存期(以秒为单位)。 | int (必需) |
传播路由表
| 名字 | 描述 | 价值 |
|---|---|---|
| IDS | 所有 RouteTable 的资源 ID 列表。 | 子资源[] |
| 标签 | 标签列表。 | 字符串[] |
资源标签
| 名字 | 描述 | 价值 |
|---|
路由配置
| 名字 | 描述 | 价值 |
|---|---|---|
| 关联的路由表 | 与此 RoutingConfiguration 关联的资源 ID RouteTable。 | 子资源 |
| inboundRouteMap (入站路由地图) | 与此 RoutingConfiguration 关联的 RouteMap 的资源 ID,用于入站学习的路由。 | 子资源 |
| outboundRouteMap | 与此 RoutingConfiguration 关联的RouteMap 的资源 ID,用于出站播发路由。 | 子资源 |
| propagated路由表 | 要向其播发路由的 RouteTable 列表。 | 传播路由表 |
| vnetRoutes | 控制从 VirtualHub 到虚拟网络连接的路由的路由列表。 | VnetRoute |
静态路由
| 名字 | 描述 | 价值 |
|---|---|---|
| address前缀 | 所有地址前缀的列表。 | 字符串[] |
| 名字 | 在 VnetRoute 中唯一的 StaticRoute 的名称。 | 字符串 |
| nextHopIp地址 | 下一跃点的 IP 地址。 | 字符串 |
静态路由配置
| 名字 | 描述 | 价值 |
|---|---|---|
| vnetLocalRouteOverrideCriteria | 参数,用于确定辐射 vnet 中的 NVA 是否为辐射中具有目标的流量绕过。 | “Contains” “Equal” |
子资源
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
TrafficSelectorPolicy 的
| 名字 | 描述 | 价值 |
|---|---|---|
| localAddress范围 | CIDR 格式的本地地址空间的集合。 | string[] (必需) |
| remoteAddress范围 | 采用 CIDR 格式的远程地址空间集合。 | string[] (必需) |
VnetRoute
| 名字 | 描述 | 价值 |
|---|---|---|
| static路由 | 所有静态路由的列表。 | StaticRoute[] |
| staticRoutesConfig | 此 HubVnetConnection 上的静态路由的配置。 | 静态路由配置 |
Vpn连接
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VPN 连接的属性。 | VpnConnection属性 |
VpnConnection属性
| 名字 | 描述 | 价值 |
|---|---|---|
| connectionBandwidth (连接带宽) | 预期带宽(以 MBPS 为单位)。 | 整数 (int) |
| dpdTimeoutSeconds | VPN 连接的 DPD 超时(以秒为单位)。 | 整数 (int) |
| 启用 Bgp | EnableBgp 标志。 | 布尔 |
| enableInternetSecurity | 启用 Internet 安全性。 | 布尔 |
| enableRateLimiting 函数 | EnableBgp 标志。 | 布尔 |
| ipsec策略 | 此连接要考虑的 IPSec 策略。 | IpsecPolicy[] |
| remoteVpnSite 网站 | 连接的 VPN 站点的 ID。 | 子资源 |
| routingConfiguration | 路由配置,指示此连接上关联的路由表和传播的路由表。 | 路由配置 |
| routingWeight | VPN 连接的路由权重。 | 整数 (int) |
| 共享密钥 | 用于 VPN 连接的 SharedKey。 | 字符串 |
| trafficSelector策略 | 此连接要考虑的流量选择器策略。 | TrafficSelectorPolicy[] |
| 使用LocalAzureIpAddress | 使用本地 Azure IP 启动连接。 | 布尔 |
| usePolicyBasedTrafficSelectors | 启用基于策略的流量选择器。 | 布尔 |
| vpnConnectionProtocolType | 用于此连接的连接协议。 | “IKEv1” “IKEv2” |
| vpnLink连接 | 指向网关的所有 VPN 站点链接连接的列表。 | VpnSiteLinkConnection[] |
VpnGatewayNatRule
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VpnGateway NAT 规则的属性。 | VpnGatewayNatRuleProperties |
VpnGatewayNatRuleProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| externalMappings (外部映射) | NAT 的专用 IP 地址外部映射。 | VpnNatRuleMapping[] |
| internalMappings | NAT 的专用 IP 地址内部映射。 | VpnNatRuleMapping[] |
| ipConfigurationId (ip配置 ID) | 此 NAT 规则适用的 IP 配置 ID。 | 字符串 |
| 模式 | VPN NAT 的源 NAT 方向。 | “EgressSnat” “IngressSnat” |
| 类型 | VPN NAT 的 NAT 规则的类型。 | “Dynamic” “Static” |
VpnGatewayProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| bgp设置 | 本地网络网关的 BGP 扬声器设置。 | Bgp设置 |
| 连接 | 指向网关的所有 VPN 连接的列表。 | VpnConnection[] |
| enableBgpRouteTranslationForNat | 在此 VpnGateway 上为 NAT 启用 BGP 路由转换。 | 布尔 |
| isRoutingPreferenceInternet | 为 VpnGateway 的公共 IP 接口启用路由首选项属性。 | 布尔 |
| nat规则 | 与网关关联的所有 nat 规则的列表。 | VpnGatewayNatRule[] |
| 虚拟中心 | 网关所属的 VirtualHub。 | 子资源 |
| vpnGatewayScaleUnit | 此 VPN 网关的缩放单元。 | 整数 (int) |
VpnNatRuleMapping
| 名字 | 描述 | 价值 |
|---|---|---|
| 地址空间 | Vpn NatRule 映射的地址空间。 | 字符串 |
| 端口范围 | Vpn NatRule 映射的端口范围。 | 字符串 |
VpnSiteLinkConnection
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VPN 站点链接连接的属性。 | VpnSiteLinkConnectionProperties |
VpnSiteLinkConnectionProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| connectionBandwidth (连接带宽) | 预期带宽(以 MBPS 为单位)。 | 整数 (int) |
| 出口 NatRules | 出口 NatRules 列表。 | 子资源[] |
| 启用 Bgp | EnableBgp 标志。 | 布尔 |
| enableRateLimiting 函数 | EnableBgp 标志。 | 布尔 |
| 入口 NatRules | 入口 NatRules 列表。 | 子资源[] |
| ipsec策略 | 此连接要考虑的 IPSec 策略。 | IpsecPolicy[] |
| routingWeight | VPN 连接的路由权重。 | 整数 (int) |
| 共享密钥 | 用于 VPN 连接的 SharedKey。 | 字符串 |
| 使用LocalAzureIpAddress | 使用本地 Azure IP 启动连接。 | 布尔 |
| usePolicyBasedTrafficSelectors | 启用基于策略的流量选择器。 | 布尔 |
| vpnConnectionProtocolType | 用于此连接的连接协议。 | “IKEv1” “IKEv2” |
| vpnGatewayCustomBgp地址 | 此连接使用的 vpnGatewayCustomBgpAddresses。 | GatewayCustomBgpIpAddressIpConfiguration[] |
| vpnLink连接模式 | Vpn 链接连接模式。 | “Default” “InitiatorOnly” “ResponderOnly” |
| vpnSite链接 | 连接的 VPN 站点链接的 ID。 | 子资源 |
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 vpnGateways 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
用法示例
Terraform 示例
在虚拟中心内部署 VPN 网关的基本示例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "virtualWan" {
type = "Microsoft.Network/virtualWans@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
allowBranchToBranchTraffic = true
disableVpnEncryption = false
office365LocalBreakoutCategory = "None"
type = "Standard"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "virtualHub" {
type = "Microsoft.Network/virtualHubs@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
addressPrefix = "10.0.0.0/24"
hubRoutingPreference = "ExpressRoute"
virtualRouterAutoScaleConfiguration = {
minCapacity = 2
}
virtualWan = {
id = azapi_resource.virtualWan.id
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "vpnGateway" {
type = "Microsoft.Network/vpnGateways@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
enableBgpRouteTranslationForNat = false
isRoutingPreferenceInternet = false
virtualHub = {
id = azapi_resource.virtualHub.id
}
vpnGatewayScaleUnit = 1
}
}
schema_validation_enabled = false
response_export_values = ["*"]
timeouts {
create = "180m"
update = "180m"
delete = "60m"
}
}
资源格式
若要创建 Microsoft.Network/vpnGateways 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/vpnGateways@2023-09-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
bgpSettings = {
asn = int
bgpPeeringAddress = "string"
bgpPeeringAddresses = [
{
customBgpIpAddresses = [
"string"
]
ipconfigurationId = "string"
}
]
peerWeight = int
}
connections = [
{
id = "string"
name = "string"
properties = {
connectionBandwidth = int
dpdTimeoutSeconds = int
enableBgp = bool
enableInternetSecurity = bool
enableRateLimiting = bool
ipsecPolicies = [
{
dhGroup = "string"
ikeEncryption = "string"
ikeIntegrity = "string"
ipsecEncryption = "string"
ipsecIntegrity = "string"
pfsGroup = "string"
saDataSizeKilobytes = int
saLifeTimeSeconds = int
}
]
remoteVpnSite = {
id = "string"
}
routingConfiguration = {
associatedRouteTable = {
id = "string"
}
inboundRouteMap = {
id = "string"
}
outboundRouteMap = {
id = "string"
}
propagatedRouteTables = {
ids = [
{
id = "string"
}
]
labels = [
"string"
]
}
vnetRoutes = {
staticRoutes = [
{
addressPrefixes = [
"string"
]
name = "string"
nextHopIpAddress = "string"
}
]
staticRoutesConfig = {
vnetLocalRouteOverrideCriteria = "string"
}
}
}
routingWeight = int
sharedKey = "string"
trafficSelectorPolicies = [
{
localAddressRanges = [
"string"
]
remoteAddressRanges = [
"string"
]
}
]
useLocalAzureIpAddress = bool
usePolicyBasedTrafficSelectors = bool
vpnConnectionProtocolType = "string"
vpnLinkConnections = [
{
id = "string"
name = "string"
properties = {
connectionBandwidth = int
egressNatRules = [
{
id = "string"
}
]
enableBgp = bool
enableRateLimiting = bool
ingressNatRules = [
{
id = "string"
}
]
ipsecPolicies = [
{
dhGroup = "string"
ikeEncryption = "string"
ikeIntegrity = "string"
ipsecEncryption = "string"
ipsecIntegrity = "string"
pfsGroup = "string"
saDataSizeKilobytes = int
saLifeTimeSeconds = int
}
]
routingWeight = int
sharedKey = "string"
useLocalAzureIpAddress = bool
usePolicyBasedTrafficSelectors = bool
vpnConnectionProtocolType = "string"
vpnGatewayCustomBgpAddresses = [
{
customBgpIpAddress = "string"
ipConfigurationId = "string"
}
]
vpnLinkConnectionMode = "string"
vpnSiteLink = {
id = "string"
}
}
}
]
}
}
]
enableBgpRouteTranslationForNat = bool
isRoutingPreferenceInternet = bool
natRules = [
{
id = "string"
name = "string"
properties = {
externalMappings = [
{
addressSpace = "string"
portRange = "string"
}
]
internalMappings = [
{
addressSpace = "string"
portRange = "string"
}
]
ipConfigurationId = "string"
mode = "string"
type = "string"
}
}
]
virtualHub = {
id = "string"
}
vpnGatewayScaleUnit = int
}
}
}
属性值
Microsoft.Network/vpnGateways
| 名字 | 描述 | 价值 |
|---|---|---|
| 位置 | 资源位置。 | 字符串 |
| 名字 | 资源名称 | string (必需) |
| 性能 | VPN 网关的属性。 | VpnGatewayProperties |
| 标签 | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft.Network/vpnGateways@2023-09-01” |
Bgp设置
| 名字 | 描述 | 价值 |
|---|---|---|
| ASN | BGP 扬声器的 ASN。 | int 约束: 最小值 = 0 最大值 = 4294967295 |
| bgp对等地址 | 此 BGP 扬声器的 BGP 对等互连地址和 BGP 标识符。 | 字符串 |
| bgpPeering地址 | 具有虚拟网络网关 IP 配置 ID 的 BGP 对等互连地址。 | IPConfigurationBgpPeeringAddress[] |
| peerWeight | 添加到从此 BGP 扬声器中学习的路由的权重。 | 整数 (int) |
GatewayCustomBgpIpAddressIpConfiguration
| 名字 | 描述 | 价值 |
|---|---|---|
| 自定义 BgpIpAddress | 属于 IpconfigurationId 的自定义 BgpPeeringAddress。 | string (必需) |
| ipConfigurationId (ip配置 ID) | 属于网关的 ipconfiguration 的 IpconfigurationId。 | string (必需) |
IPConfigurationBgpPeeringAddress
| 名字 | 描述 | 价值 |
|---|---|---|
| customBgpIp地址 | 属于 IP 配置的自定义 BGP 对等互连地址的列表。 | 字符串[] |
| ipconfigurationId | 属于网关的 IP 配置的 ID。 | 字符串 |
IpsecPolicy 策略
| 名字 | 描述 | 价值 |
|---|---|---|
| dhGroup 公司 | IKE 阶段 1 中用于初始 SA 的 DH 组。 | “DHGroup1” “DHGroup14” “DHGroup2” “DHGroup2048” “DHGroup24” “ECP256” “ECP384” “无”(必需) |
| ike加密 | IKE 加密算法(IKE 阶段 2)。 | “AES128” “AES192” “AES256” “DES” “DES3” “GCMAES128” “GCMAES256”(必需) |
| ike诚信 | IKE 完整性算法(IKE 阶段 2)。 | “GCMAES128” “GCMAES256” “MD5” “SHA1” “SHA256” “SHA384”(必需) |
| ipsec加密 | IPSec 加密算法(IKE 阶段 1)。 | “AES128” “AES192” “AES256” “DES” “DES3” “GCMAES128” “GCMAES192” “GCMAES256” “无”(必需) |
| ipsec完整性 | IPSec 完整性算法(IKE 阶段 1)。 | “GCMAES128” “GCMAES192” “GCMAES256” “MD5” “SHA1” “SHA256”(必需) |
| pfs集团 | IKE 阶段 2 中使用的 Pfs 组用于新的子 SA。 | “ECP256” “ECP384” “None” “PFS1” “PFS14” “PFS2” “PFS2048” “PFS24” “PFSMM”(必需) |
| saDataSize千字节 | IPSec 安全关联(也称为快速模式或阶段 2 SA)有效负载大小(以 KB 为单位),用于站点到站点 VPN 隧道。 | int (必需) |
| saLifeTimeSeconds | 站点到站点 VPN 隧道的 IPSec 安全关联(也称为快速模式或阶段 2 SA)生存期(以秒为单位)。 | int (必需) |
传播路由表
| 名字 | 描述 | 价值 |
|---|---|---|
| IDS | 所有 RouteTable 的资源 ID 列表。 | 子资源[] |
| 标签 | 标签列表。 | 字符串[] |
资源标签
| 名字 | 描述 | 价值 |
|---|
路由配置
| 名字 | 描述 | 价值 |
|---|---|---|
| 关联的路由表 | 与此 RoutingConfiguration 关联的资源 ID RouteTable。 | 子资源 |
| inboundRouteMap (入站路由地图) | 与此 RoutingConfiguration 关联的 RouteMap 的资源 ID,用于入站学习的路由。 | 子资源 |
| outboundRouteMap | 与此 RoutingConfiguration 关联的RouteMap 的资源 ID,用于出站播发路由。 | 子资源 |
| propagated路由表 | 要向其播发路由的 RouteTable 列表。 | 传播路由表 |
| vnetRoutes | 控制从 VirtualHub 到虚拟网络连接的路由的路由列表。 | VnetRoute |
静态路由
| 名字 | 描述 | 价值 |
|---|---|---|
| address前缀 | 所有地址前缀的列表。 | 字符串[] |
| 名字 | 在 VnetRoute 中唯一的 StaticRoute 的名称。 | 字符串 |
| nextHopIp地址 | 下一跃点的 IP 地址。 | 字符串 |
静态路由配置
| 名字 | 描述 | 价值 |
|---|---|---|
| vnetLocalRouteOverrideCriteria | 参数,用于确定辐射 vnet 中的 NVA 是否为辐射中具有目标的流量绕过。 | “Contains” “Equal” |
子资源
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
TrafficSelectorPolicy 的
| 名字 | 描述 | 价值 |
|---|---|---|
| localAddress范围 | CIDR 格式的本地地址空间的集合。 | string[] (必需) |
| remoteAddress范围 | 采用 CIDR 格式的远程地址空间集合。 | string[] (必需) |
VnetRoute
| 名字 | 描述 | 价值 |
|---|---|---|
| static路由 | 所有静态路由的列表。 | StaticRoute[] |
| staticRoutesConfig | 此 HubVnetConnection 上的静态路由的配置。 | 静态路由配置 |
Vpn连接
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VPN 连接的属性。 | VpnConnection属性 |
VpnConnection属性
| 名字 | 描述 | 价值 |
|---|---|---|
| connectionBandwidth (连接带宽) | 预期带宽(以 MBPS 为单位)。 | 整数 (int) |
| dpdTimeoutSeconds | VPN 连接的 DPD 超时(以秒为单位)。 | 整数 (int) |
| 启用 Bgp | EnableBgp 标志。 | 布尔 |
| enableInternetSecurity | 启用 Internet 安全性。 | 布尔 |
| enableRateLimiting 函数 | EnableBgp 标志。 | 布尔 |
| ipsec策略 | 此连接要考虑的 IPSec 策略。 | IpsecPolicy[] |
| remoteVpnSite 网站 | 连接的 VPN 站点的 ID。 | 子资源 |
| routingConfiguration | 路由配置,指示此连接上关联的路由表和传播的路由表。 | 路由配置 |
| routingWeight | VPN 连接的路由权重。 | 整数 (int) |
| 共享密钥 | 用于 VPN 连接的 SharedKey。 | 字符串 |
| trafficSelector策略 | 此连接要考虑的流量选择器策略。 | TrafficSelectorPolicy[] |
| 使用LocalAzureIpAddress | 使用本地 Azure IP 启动连接。 | 布尔 |
| usePolicyBasedTrafficSelectors | 启用基于策略的流量选择器。 | 布尔 |
| vpnConnectionProtocolType | 用于此连接的连接协议。 | “IKEv1” “IKEv2” |
| vpnLink连接 | 指向网关的所有 VPN 站点链接连接的列表。 | VpnSiteLinkConnection[] |
VpnGatewayNatRule
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VpnGateway NAT 规则的属性。 | VpnGatewayNatRuleProperties |
VpnGatewayNatRuleProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| externalMappings (外部映射) | NAT 的专用 IP 地址外部映射。 | VpnNatRuleMapping[] |
| internalMappings | NAT 的专用 IP 地址内部映射。 | VpnNatRuleMapping[] |
| ipConfigurationId (ip配置 ID) | 此 NAT 规则适用的 IP 配置 ID。 | 字符串 |
| 模式 | VPN NAT 的源 NAT 方向。 | “EgressSnat” “IngressSnat” |
| 类型 | VPN NAT 的 NAT 规则的类型。 | “Dynamic” “Static” |
VpnGatewayProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| bgp设置 | 本地网络网关的 BGP 扬声器设置。 | Bgp设置 |
| 连接 | 指向网关的所有 VPN 连接的列表。 | VpnConnection[] |
| enableBgpRouteTranslationForNat | 在此 VpnGateway 上为 NAT 启用 BGP 路由转换。 | 布尔 |
| isRoutingPreferenceInternet | 为 VpnGateway 的公共 IP 接口启用路由首选项属性。 | 布尔 |
| nat规则 | 与网关关联的所有 nat 规则的列表。 | VpnGatewayNatRule[] |
| 虚拟中心 | 网关所属的 VirtualHub。 | 子资源 |
| vpnGatewayScaleUnit | 此 VPN 网关的缩放单元。 | 整数 (int) |
VpnNatRuleMapping
| 名字 | 描述 | 价值 |
|---|---|---|
| 地址空间 | Vpn NatRule 映射的地址空间。 | 字符串 |
| 端口范围 | Vpn NatRule 映射的端口范围。 | 字符串 |
VpnSiteLinkConnection
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源组中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | VPN 站点链接连接的属性。 | VpnSiteLinkConnectionProperties |
VpnSiteLinkConnectionProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| connectionBandwidth (连接带宽) | 预期带宽(以 MBPS 为单位)。 | 整数 (int) |
| 出口 NatRules | 出口 NatRules 列表。 | 子资源[] |
| 启用 Bgp | EnableBgp 标志。 | 布尔 |
| enableRateLimiting 函数 | EnableBgp 标志。 | 布尔 |
| 入口 NatRules | 入口 NatRules 列表。 | 子资源[] |
| ipsec策略 | 此连接要考虑的 IPSec 策略。 | IpsecPolicy[] |
| routingWeight | VPN 连接的路由权重。 | 整数 (int) |
| 共享密钥 | 用于 VPN 连接的 SharedKey。 | 字符串 |
| 使用LocalAzureIpAddress | 使用本地 Azure IP 启动连接。 | 布尔 |
| usePolicyBasedTrafficSelectors | 启用基于策略的流量选择器。 | 布尔 |
| vpnConnectionProtocolType | 用于此连接的连接协议。 | “IKEv1” “IKEv2” |
| vpnGatewayCustomBgp地址 | 此连接使用的 vpnGatewayCustomBgpAddresses。 | GatewayCustomBgpIpAddressIpConfiguration[] |
| vpnLink连接模式 | Vpn 链接连接模式。 | “Default” “InitiatorOnly” “ResponderOnly” |
| vpnSite链接 | 连接的 VPN 站点链接的 ID。 | 子资源 |