- 最新
- 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
- 2018-02-01
Bicep 資源定義
expressRouteCircuits/peerings/connections 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Bicep 範例
部署 Express Route 線路連線的基本範例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
@secure()
@description('The shared key for the Express Route circuit peering connections')
param expressRouteConnectionSharedKey string
resource expressRoutePort 'Microsoft.Network/ExpressRoutePorts@2022-07-01' = {
name: resourceName
location: location
properties: {
bandwidthInGbps: 10
encapsulation: 'Dot1Q'
peeringLocation: 'Airtel-Chennai2-CLS'
}
}
resource expressRoutePort2 'Microsoft.Network/ExpressRoutePorts@2022-07-01' = {
name: resourceName
location: location
properties: {
bandwidthInGbps: 10
encapsulation: 'Dot1Q'
peeringLocation: 'CDC-Canberra'
}
}
resource expressRouteCircuit 'Microsoft.Network/expressRouteCircuits@2022-07-01' = {
name: resourceName
location: location
sku: {
family: 'MeteredData'
name: 'Standard_MeteredData'
tier: 'Standard'
}
properties: {
authorizationKey: ''
bandwidthInGbps: 5
expressRoutePort: {
id: expressRoutePort.id
}
}
}
resource expressRouteCircuit2 'Microsoft.Network/expressRouteCircuits@2022-07-01' = {
name: resourceName
location: location
sku: {
family: 'MeteredData'
name: 'Standard_MeteredData'
tier: 'Standard'
}
properties: {
authorizationKey: ''
bandwidthInGbps: 5
expressRoutePort: {
id: expressRoutePort2.id
}
}
}
resource peering 'Microsoft.Network/expressRouteCircuits/peerings@2022-07-01' = {
name: 'AzurePrivatePeering'
parent: expressRouteCircuit
properties: {
azureASN: 12076
gatewayManagerEtag: ''
peerASN: 100
peeringType: 'AzurePrivatePeering'
primaryPeerAddressPrefix: '192.168.1.0/30'
secondaryPeerAddressPrefix: '192.168.1.0/30'
sharedKey: expressRouteConnectionSharedKey
state: 'Enabled'
vlanId: 100
}
}
resource peering2 'Microsoft.Network/expressRouteCircuits/peerings@2022-07-01' = {
name: 'AzurePrivatePeering'
parent: expressRouteCircuit2
properties: {
azureASN: 12076
gatewayManagerEtag: ''
peerASN: 100
peeringType: 'AzurePrivatePeering'
primaryPeerAddressPrefix: '192.168.1.0/30'
secondaryPeerAddressPrefix: '192.168.1.0/30'
sharedKey: expressRouteConnectionSharedKey
state: 'Enabled'
vlanId: 100
}
}
resource connection 'Microsoft.Network/expressRouteCircuits/peerings/connections@2022-07-01' = {
name: resourceName
parent: peering
properties: {
addressPrefix: '192.169.8.0/29'
expressRouteCircuitPeering: {
id: peering.id
}
peerExpressRouteCircuitPeering: {
id: peering2.id
}
}
}
資源格式
若要建立 Microsoft.Network/expressRouteCircuits/peerings/connections 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Network/expressRouteCircuits/peerings/connections@2018-12-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
addressPrefix: 'string'
authorizationKey: 'string'
expressRouteCircuitPeering: {
id: 'string'
}
peerExpressRouteCircuitPeering: {
id: 'string'
}
}
}
屬性值
Microsoft.Network/expressRouteCircuits/對等互連/連接
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:expressRouteCircuits/peerings |
| 性能 | ExpressRouteCircuitConnectionPropertiesFormat |
ExpressRouteCircuitConnectionPropertiesFormat
| 名字 | 描述 | 價值 |
|---|---|---|
| addressPrefix 的 | /29 IP 位址空間,以找出通道的客戶位址。 | 字串 |
| authorizationKey | 授權金鑰。 | 字串 |
| expressRouteCircuit對等互連 | 起始連線之線路的 Express Route 線路私人對等互連資源的參考。 | 子資源 |
| 對等 ExpressRouteCircuit對等互連 | 對等互連線路的 Express Route 線路私人對等互連資源的參考。 | 子資源 |
子資源
| 名字 | 描述 | 價值 |
|---|---|---|
| 識別碼 | 資源標識碼。 | 字串 |
ARM 樣本資源定義
expressRouteCircuits/peerings/connections 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.Network/expressRouteCircuits/peerings/connections 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Network/expressRouteCircuits/peerings/connections",
"apiVersion": "2018-12-01",
"name": "string",
"properties": {
"addressPrefix": "string",
"authorizationKey": "string",
"expressRouteCircuitPeering": {
"id": "string"
},
"peerExpressRouteCircuitPeering": {
"id": "string"
}
}
}
屬性值
Microsoft.Network/expressRouteCircuits/對等互連/連接
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2018-12-01' |
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | ExpressRouteCircuitConnectionPropertiesFormat | |
| 型別 | 資源類型 | “Microsoft.Network/expressRouteCircuits/peerings/connections” |
ExpressRouteCircuitConnectionPropertiesFormat
| 名字 | 描述 | 價值 |
|---|---|---|
| addressPrefix 的 | /29 IP 位址空間,以找出通道的客戶位址。 | 字串 |
| authorizationKey | 授權金鑰。 | 字串 |
| expressRouteCircuit對等互連 | 起始連線之線路的 Express Route 線路私人對等互連資源的參考。 | 子資源 |
| 對等 ExpressRouteCircuit對等互連 | 對等互連線路的 Express Route 線路私人對等互連資源的參考。 | 子資源 |
子資源
| 名字 | 描述 | 價值 |
|---|---|---|
| 識別碼 | 資源標識碼。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
expressRouteCircuits/peerings/connections 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Terraform 範例
部署 Express Route 線路連線的基本範例。
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"
}
variable "express_route_connection_shared_key" {
type = string
description = "The shared key for the Express Route circuit peering connections"
sensitive = true
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "ExpressRoutePort" {
type = "Microsoft.Network/ExpressRoutePorts@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
bandwidthInGbps = 10
encapsulation = "Dot1Q"
peeringLocation = "Airtel-Chennai2-CLS"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "ExpressRoutePort2" {
type = "Microsoft.Network/ExpressRoutePorts@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
bandwidthInGbps = 10
encapsulation = "Dot1Q"
peeringLocation = "CDC-Canberra"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "expressRouteCircuit" {
type = "Microsoft.Network/expressRouteCircuits@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
authorizationKey = ""
bandwidthInGbps = 5
expressRoutePort = {
id = azapi_resource.ExpressRoutePort.id
}
}
sku = {
family = "MeteredData"
name = "Standard_MeteredData"
tier = "Standard"
}
}
ignore_casing = true
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "expressRouteCircuit2" {
type = "Microsoft.Network/expressRouteCircuits@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
authorizationKey = ""
bandwidthInGbps = 5
expressRoutePort = {
id = azapi_resource.ExpressRoutePort2.id
}
}
sku = {
family = "MeteredData"
name = "Standard_MeteredData"
tier = "Standard"
}
}
ignore_casing = true
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "peering" {
type = "Microsoft.Network/expressRouteCircuits/peerings@2022-07-01"
parent_id = azapi_resource.expressRouteCircuit.id
name = "AzurePrivatePeering"
body = {
properties = {
azureASN = 12076
gatewayManagerEtag = ""
peerASN = 100
peeringType = "AzurePrivatePeering"
primaryPeerAddressPrefix = "192.168.1.0/30"
secondaryPeerAddressPrefix = "192.168.1.0/30"
sharedKey = var.express_route_connection_shared_key
state = "Enabled"
vlanId = 100
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "peering2" {
type = "Microsoft.Network/expressRouteCircuits/peerings@2022-07-01"
parent_id = azapi_resource.expressRouteCircuit2.id
name = "AzurePrivatePeering"
body = {
properties = {
azureASN = 12076
gatewayManagerEtag = ""
peerASN = 100
peeringType = "AzurePrivatePeering"
primaryPeerAddressPrefix = "192.168.1.0/30"
secondaryPeerAddressPrefix = "192.168.1.0/30"
sharedKey = var.express_route_connection_shared_key
state = "Enabled"
vlanId = 100
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "connection" {
type = "Microsoft.Network/expressRouteCircuits/peerings/connections@2022-07-01"
parent_id = azapi_resource.peering.id
name = var.resource_name
body = {
properties = {
addressPrefix = "192.169.8.0/29"
expressRouteCircuitPeering = {
id = azapi_resource.peering.id
}
peerExpressRouteCircuitPeering = {
id = azapi_resource.peering2.id
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
資源格式
若要建立 Microsoft.Network/expressRouteCircuits/peerings/connections 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/expressRouteCircuits/peerings/connections@2018-12-01"
name = "string"
parent_id = "string"
body = {
properties = {
addressPrefix = "string"
authorizationKey = "string"
expressRouteCircuitPeering = {
id = "string"
}
peerExpressRouteCircuitPeering = {
id = "string"
}
}
}
}
屬性值
Microsoft.Network/expressRouteCircuits/對等互連/連接
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:expressRouteCircuits/peerings |
| 性能 | ExpressRouteCircuitConnectionPropertiesFormat | |
| 型別 | 資源類型 | “Microsoft.Network/expressRouteCircuits/peerings/connections@2018-12-01” |
ExpressRouteCircuitConnectionPropertiesFormat
| 名字 | 描述 | 價值 |
|---|---|---|
| addressPrefix 的 | /29 IP 位址空間,以找出通道的客戶位址。 | 字串 |
| authorizationKey | 授權金鑰。 | 字串 |
| expressRouteCircuit對等互連 | 起始連線之線路的 Express Route 線路私人對等互連資源的參考。 | 子資源 |
| 對等 ExpressRouteCircuit對等互連 | 對等互連線路的 Express Route 線路私人對等互連資源的參考。 | 子資源 |
子資源
| 名字 | 描述 | 價值 |
|---|---|---|
| 識別碼 | 資源標識碼。 | 字串 |