你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Network vpnGateways/vpnConnections 2020 年 4 月 1 日

Bicep 资源定义

可以使用目标操作部署 vpnGateways/vpnConnections 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Network/vpnGateways/vpnConnections 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Network/vpnGateways/vpnConnections@2020-04-01' = {
  parent: resourceSymbolicName
  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'
      }
      propagatedRouteTables: {
        ids: [
          {
            id: 'string'
          }
        ]
        labels: [
          'string'
        ]
      }
      vnetRoutes: {
        staticRoutes: [
          {
            addressPrefixes: [
              'string'
            ]
            name: 'string'
            nextHopIpAddress: 'string'
          }
        ]
      }
    }
    routingWeight: int
    sharedKey: 'string'
    useLocalAzureIpAddress: bool
    usePolicyBasedTrafficSelectors: bool
    vpnConnectionProtocolType: 'string'
    vpnLinkConnections: [
      {
        id: 'string'
        name: 'string'
        properties: {
          connectionBandwidth: int
          enableBgp: bool
          enableRateLimiting: bool
          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'
          vpnSiteLink: {
            id: 'string'
          }
        }
      }
    ]
  }
}

属性值

Microsoft.Network/vpnGateways/vpnConnections

名字 描述 价值
名字 资源名称 string (必需)
父母 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源
类型资源的符号名称:vpnGateways
性能 VPN 连接的属性。 VpnConnection属性

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。 子资源
propagated路由表 要向其播发路由的 RouteTable 列表。 传播路由表
vnetRoutes 控制从 VirtualHub 到虚拟网络连接的路由的路由列表。 VnetRoute

静态路由

名字 描述 价值
address前缀 所有地址前缀的列表。 字符串[]
名字 在 VnetRoute 中唯一的 StaticRoute 的名称。 字符串
nextHopIp地址 下一跃点的 IP 地址。 字符串

子资源

名字 描述 价值
身份证 资源 ID。 字符串

VnetRoute

名字 描述 价值
static路由 所有静态路由的列表。 StaticRoute[]

VpnConnection属性

名字 描述 价值
connectionBandwidth (连接带宽) 预期带宽(以 MBPS 为单位)。 整数 (int)
dpdTimeoutSeconds vpn 连接的死对等检测超时(以秒为单位)。 整数 (int)
启用 Bgp EnableBgp 标志。 布尔
enableInternetSecurity 启用 Internet 安全性。 布尔
enableRateLimiting 函数 EnableBgp 标志。 布尔
ipsec策略 此连接要考虑的 IPSec 策略。 IpsecPolicy[]
remoteVpnSite 网站 连接的 VPN 站点的 ID。 子资源
routingConfiguration 路由配置,指示此连接上关联的路由表和传播的路由表。 路由配置
routingWeight VPN 连接的路由权重。 整数 (int)
共享密钥 用于 VPN 连接的 SharedKey。 字符串
使用LocalAzureIpAddress 使用本地 Azure IP 启动连接。 布尔
usePolicyBasedTrafficSelectors 启用基于策略的流量选择器。 布尔
vpnConnectionProtocolType 用于此连接的连接协议。 “IKEv1”
“IKEv2”
vpnLink连接 指向网关的所有 VPN 站点链接连接的列表。 VpnSiteLinkConnection[]

VpnSiteLinkConnection

名字 描述 价值
身份证 资源 ID。 字符串
名字 资源组中唯一的资源的名称。 此名称可用于访问资源。 字符串
性能 VPN 站点链接连接的属性。 VpnSiteLinkConnectionProperties

VpnSiteLinkConnectionProperties

名字 描述 价值
connectionBandwidth (连接带宽) 预期带宽(以 MBPS 为单位)。 整数 (int)
启用 Bgp EnableBgp 标志。 布尔
enableRateLimiting 函数 EnableBgp 标志。 布尔
ipsec策略 此连接要考虑的 IPSec 策略。 IpsecPolicy[]
routingWeight VPN 连接的路由权重。 整数 (int)
共享密钥 用于 VPN 连接的 SharedKey。 字符串
使用LocalAzureIpAddress 使用本地 Azure IP 启动连接。 布尔
usePolicyBasedTrafficSelectors 启用基于策略的流量选择器。 布尔
vpnConnectionProtocolType 用于此连接的连接协议。 “IKEv1”
“IKEv2”
vpnSite链接 连接的 VPN 站点链接的 ID。 子资源

ARM 模板资源定义

可以使用目标操作部署 vpnGateways/vpnConnections 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Network/vpnGateways/vpnConnections 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Network/vpnGateways/vpnConnections",
  "apiVersion": "2020-04-01",
  "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"
      },
      "propagatedRouteTables": {
        "ids": [
          {
            "id": "string"
          }
        ],
        "labels": [ "string" ]
      },
      "vnetRoutes": {
        "staticRoutes": [
          {
            "addressPrefixes": [ "string" ],
            "name": "string",
            "nextHopIpAddress": "string"
          }
        ]
      }
    },
    "routingWeight": "int",
    "sharedKey": "string",
    "useLocalAzureIpAddress": "bool",
    "usePolicyBasedTrafficSelectors": "bool",
    "vpnConnectionProtocolType": "string",
    "vpnLinkConnections": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "connectionBandwidth": "int",
          "enableBgp": "bool",
          "enableRateLimiting": "bool",
          "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",
          "vpnSiteLink": {
            "id": "string"
          }
        }
      }
    ]
  }
}

属性值

Microsoft.Network/vpnGateways/vpnConnections

名字 描述 价值
apiVersion API 版本 '2020-04-01'
名字 资源名称 string (必需)
性能 VPN 连接的属性。 VpnConnection属性
类型 资源类型 “Microsoft.Network/vpnGateways/vpnConnections”

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。 子资源
propagated路由表 要向其播发路由的 RouteTable 列表。 传播路由表
vnetRoutes 控制从 VirtualHub 到虚拟网络连接的路由的路由列表。 VnetRoute

静态路由

名字 描述 价值
address前缀 所有地址前缀的列表。 字符串[]
名字 在 VnetRoute 中唯一的 StaticRoute 的名称。 字符串
nextHopIp地址 下一跃点的 IP 地址。 字符串

子资源

名字 描述 价值
身份证 资源 ID。 字符串

VnetRoute

名字 描述 价值
static路由 所有静态路由的列表。 StaticRoute[]

VpnConnection属性

名字 描述 价值
connectionBandwidth (连接带宽) 预期带宽(以 MBPS 为单位)。 整数 (int)
dpdTimeoutSeconds vpn 连接的死对等检测超时(以秒为单位)。 整数 (int)
启用 Bgp EnableBgp 标志。 布尔
enableInternetSecurity 启用 Internet 安全性。 布尔
enableRateLimiting 函数 EnableBgp 标志。 布尔
ipsec策略 此连接要考虑的 IPSec 策略。 IpsecPolicy[]
remoteVpnSite 网站 连接的 VPN 站点的 ID。 子资源
routingConfiguration 路由配置,指示此连接上关联的路由表和传播的路由表。 路由配置
routingWeight VPN 连接的路由权重。 整数 (int)
共享密钥 用于 VPN 连接的 SharedKey。 字符串
使用LocalAzureIpAddress 使用本地 Azure IP 启动连接。 布尔
usePolicyBasedTrafficSelectors 启用基于策略的流量选择器。 布尔
vpnConnectionProtocolType 用于此连接的连接协议。 “IKEv1”
“IKEv2”
vpnLink连接 指向网关的所有 VPN 站点链接连接的列表。 VpnSiteLinkConnection[]

VpnSiteLinkConnection

名字 描述 价值
身份证 资源 ID。 字符串
名字 资源组中唯一的资源的名称。 此名称可用于访问资源。 字符串
性能 VPN 站点链接连接的属性。 VpnSiteLinkConnectionProperties

VpnSiteLinkConnectionProperties

名字 描述 价值
connectionBandwidth (连接带宽) 预期带宽(以 MBPS 为单位)。 整数 (int)
启用 Bgp EnableBgp 标志。 布尔
enableRateLimiting 函数 EnableBgp 标志。 布尔
ipsec策略 此连接要考虑的 IPSec 策略。 IpsecPolicy[]
routingWeight VPN 连接的路由权重。 整数 (int)
共享密钥 用于 VPN 连接的 SharedKey。 字符串
使用LocalAzureIpAddress 使用本地 Azure IP 启动连接。 布尔
usePolicyBasedTrafficSelectors 启用基于策略的流量选择器。 布尔
vpnConnectionProtocolType 用于此连接的连接协议。 “IKEv1”
“IKEv2”
vpnSite链接 连接的 VPN 站点链接的 ID。 子资源

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署 vpnGateways/vpnConnections 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Network/vpnGateways/vpnConnections 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/vpnGateways/vpnConnections@2020-04-01"
  name = "string"
  parent_id = "string"
  body = {
    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"
        }
        propagatedRouteTables = {
          ids = [
            {
              id = "string"
            }
          ]
          labels = [
            "string"
          ]
        }
        vnetRoutes = {
          staticRoutes = [
            {
              addressPrefixes = [
                "string"
              ]
              name = "string"
              nextHopIpAddress = "string"
            }
          ]
        }
      }
      routingWeight = int
      sharedKey = "string"
      useLocalAzureIpAddress = bool
      usePolicyBasedTrafficSelectors = bool
      vpnConnectionProtocolType = "string"
      vpnLinkConnections = [
        {
          id = "string"
          name = "string"
          properties = {
            connectionBandwidth = int
            enableBgp = bool
            enableRateLimiting = bool
            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"
            vpnSiteLink = {
              id = "string"
            }
          }
        }
      ]
    }
  }
}

属性值

Microsoft.Network/vpnGateways/vpnConnections

名字 描述 价值
名字 资源名称 string (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:vpnGateways
性能 VPN 连接的属性。 VpnConnection属性
类型 资源类型 “Microsoft.Network/vpnGateways/vpnConnections@2020-04-01”

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。 子资源
propagated路由表 要向其播发路由的 RouteTable 列表。 传播路由表
vnetRoutes 控制从 VirtualHub 到虚拟网络连接的路由的路由列表。 VnetRoute

静态路由

名字 描述 价值
address前缀 所有地址前缀的列表。 字符串[]
名字 在 VnetRoute 中唯一的 StaticRoute 的名称。 字符串
nextHopIp地址 下一跃点的 IP 地址。 字符串

子资源

名字 描述 价值
身份证 资源 ID。 字符串

VnetRoute

名字 描述 价值
static路由 所有静态路由的列表。 StaticRoute[]

VpnConnection属性

名字 描述 价值
connectionBandwidth (连接带宽) 预期带宽(以 MBPS 为单位)。 整数 (int)
dpdTimeoutSeconds vpn 连接的死对等检测超时(以秒为单位)。 整数 (int)
启用 Bgp EnableBgp 标志。 布尔
enableInternetSecurity 启用 Internet 安全性。 布尔
enableRateLimiting 函数 EnableBgp 标志。 布尔
ipsec策略 此连接要考虑的 IPSec 策略。 IpsecPolicy[]
remoteVpnSite 网站 连接的 VPN 站点的 ID。 子资源
routingConfiguration 路由配置,指示此连接上关联的路由表和传播的路由表。 路由配置
routingWeight VPN 连接的路由权重。 整数 (int)
共享密钥 用于 VPN 连接的 SharedKey。 字符串
使用LocalAzureIpAddress 使用本地 Azure IP 启动连接。 布尔
usePolicyBasedTrafficSelectors 启用基于策略的流量选择器。 布尔
vpnConnectionProtocolType 用于此连接的连接协议。 “IKEv1”
“IKEv2”
vpnLink连接 指向网关的所有 VPN 站点链接连接的列表。 VpnSiteLinkConnection[]

VpnSiteLinkConnection

名字 描述 价值
身份证 资源 ID。 字符串
名字 资源组中唯一的资源的名称。 此名称可用于访问资源。 字符串
性能 VPN 站点链接连接的属性。 VpnSiteLinkConnectionProperties

VpnSiteLinkConnectionProperties

名字 描述 价值
connectionBandwidth (连接带宽) 预期带宽(以 MBPS 为单位)。 整数 (int)
启用 Bgp EnableBgp 标志。 布尔
enableRateLimiting 函数 EnableBgp 标志。 布尔
ipsec策略 此连接要考虑的 IPSec 策略。 IpsecPolicy[]
routingWeight VPN 连接的路由权重。 整数 (int)
共享密钥 用于 VPN 连接的 SharedKey。 字符串
使用LocalAzureIpAddress 使用本地 Azure IP 启动连接。 布尔
usePolicyBasedTrafficSelectors 启用基于策略的流量选择器。 布尔
vpnConnectionProtocolType 用于此连接的连接协议。 “IKEv1”
“IKEv2”
vpnSite链接 连接的 VPN 站点链接的 ID。 子资源