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

Microsoft.Network expressRouteGateways 2021-02-01

Bicep 资源定义

可以使用面向以下操作部署 expressRouteGateways 资源类型:

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

资源格式

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

resource symbolicname 'Microsoft.Network/expressRouteGateways@2021-02-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    autoScaleConfiguration: {
      bounds: {
        max: int
        min: int
      }
    }
    virtualHub: {
      id: 'string'
    }
  }
}

属性值

expressRouteGateways

名称 说明
name 资源名称 字符串 (必需)
location 资源位置。 string
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
properties 快速路由网关的属性。 ExpressRouteGatewayProperties

ExpressRouteGatewayProperties

名称 说明
autoScaleConfiguration 自动缩放的配置。 ExpressRouteGatewayPropertiesAutoScaleConfiguration
virtualHub 部署或将部署 ExpressRoute 网关的虚拟中心。 VirtualHubId (必需)

ExpressRouteGatewayPropertiesAutoScaleConfiguration

名称 说明
bounds 要部署的最小和最大缩放单元数。 ExpressRouteGatewayPropertiesAutoScaleConfigurationB...

ExpressRouteGatewayPropertiesAutoScaleConfigurationB...

名称 说明
max 为 ExpressRoute 网关部署的最大缩放单元数。 int
分钟 为 ExpressRoute 网关部署的最小缩放单元数。 int

VirtualHubId

名称 说明 Value
id 部署或将部署 ExpressRoute 网关的虚拟中心的资源 URI。 虚拟中心资源和 ExpressRoute 网关资源驻留在同一订阅中。 字符串

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
Azure 虚拟 WAN 路由意向和策略

部署到 Azure
此模板预配 Azure 虚拟 WAN,其中包含启用了路由意向和策略功能的两个中心。
Azure 虚拟 WAN (vWAN) 多中心部署

部署到 Azure
此模板允许创建 Azure 虚拟 WAN (vWAN) 多中心部署,包括所有网关和 VNET 连接。
使用自定义路由表进行 Azure vWAN 多中心部署

部署到 Azure
使用此模板可以创建 Azure 虚拟 WAN (vWAN) 多中心部署,包括所有网关和 VNET 连接,并演示路由表用于自定义路由。

ARM 模板资源定义

可以使用面向以下操作部署 expressRouteGateways 资源类型:

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

资源格式

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

{
  "type": "Microsoft.Network/expressRouteGateways",
  "apiVersion": "2021-02-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "autoScaleConfiguration": {
      "bounds": {
        "max": "int",
        "min": "int"
      }
    },
    "virtualHub": {
      "id": "string"
    }
  }
}

属性值

expressRouteGateways

名称 说明 Value
type 资源类型 'Microsoft.Network/expressRouteGateways'
apiVersion 资源 API 版本 '2021-02-01'
name 资源名称 字符串 (必需)
location 资源位置。 字符串
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
properties 快速路由网关的属性。 ExpressRouteGatewayProperties

ExpressRouteGatewayProperties

名称 说明
autoScaleConfiguration 自动缩放的配置。 ExpressRouteGatewayPropertiesAutoScaleConfiguration
virtualHub 部署或将部署 ExpressRoute 网关的虚拟中心。 VirtualHubId (必需)

ExpressRouteGatewayPropertiesAutoScaleConfiguration

名称 说明
bounds 要部署的最小和最大缩放单元数。 ExpressRouteGatewayPropertiesAutoScaleConfigurationB...

ExpressRouteGatewayPropertiesAutoScaleConfigurationB...

名称 说明
max 为 ExpressRoute 网关部署的最大缩放单元数。 int
分钟 为 ExpressRoute 网关部署的最小缩放单元数。 int

VirtualHubId

名称 说明 Value
id 部署或将部署 ExpressRoute 网关的虚拟中心的资源 URI。 虚拟中心资源和 ExpressRoute 网关资源驻留在同一订阅中。 string

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
Azure 虚拟 WAN 路由意向和策略

部署到 Azure
此模板预配 Azure 虚拟 WAN,其中包含启用了路由意向和策略功能的两个中心。
Azure 虚拟 WAN (vWAN) 多中心部署

部署到 Azure
此模板允许创建 Azure 虚拟 WAN (vWAN) 多中心部署,包括所有网关和 VNET 连接。
使用自定义路由表进行 Azure vWAN 多中心部署

部署到 Azure
使用此模板可以创建 Azure 虚拟 WAN (vWAN) 多中心部署,包括所有网关和 VNET 连接,并演示路由表用于自定义路由。

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

可以使用面向以下操作部署 expressRouteGateways 资源类型:

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/expressRouteGateways@2021-02-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      autoScaleConfiguration = {
        bounds = {
          max = int
          min = int
        }
      }
      virtualHub = {
        id = "string"
      }
    }
  })
}

属性值

expressRouteGateways

名称 说明 Value
type 资源类型 “Microsoft.Network/expressRouteGateways@2021-02-01”
name 资源名称 字符串 (必需)
location 资源位置。 string
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。
properties 快速路由网关的属性。 ExpressRouteGatewayProperties

ExpressRouteGatewayProperties

名称 说明
autoScaleConfiguration 自动缩放的配置。 ExpressRouteGatewayPropertiesAutoScaleConfiguration
virtualHub 部署或将要部署 ExpressRoute 网关的虚拟中心。 VirtualHubId (必需)

ExpressRouteGatewayPropertiesAutoScaleConfiguration

名称 说明
bounds 要部署的缩放单元的最小和最大数量。 ExpressRouteGatewayPropertiesAutoScaleConfigurationB...

ExpressRouteGatewayPropertiesAutoScaleConfigurationB...

名称 说明
max 为 ExpressRoute 网关部署的最大缩放单元数。 int
分钟 为 ExpressRoute 网关部署的最小缩放单元数。 int

VirtualHubId

名称 说明 Value
id 部署或将部署 ExpressRoute 网关的虚拟中心的资源 URI。 虚拟中心资源和 ExpressRoute 网关资源驻留在同一订阅中。 字符串