Microsoft.Network expressRouteCircuits/eşlemeler/bağlantılar 2022-01-01

Bicep kaynak tanımı

expressRouteCircuits/peerings/connections kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:

  • kaynak grupları - Bkz. kaynak grubu dağıtım komutları

Her API sürümünde değiştirilen özelliklerin listesi için bkz. değişiklik günlüğü.

Kullanım Örnekleri

Bicep Örnekleri

Express Route Bağlantı Hattı Bağlantısı dağıtmanın temel bir örneği.

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

Kaynak biçimi

Microsoft.Network/expressRouteCircuits/peerings/connections kaynağı oluşturmak için, şablonunuza aşağıdaki Bicep'i ekleyin.

resource symbolicname 'Microsoft.Network/expressRouteCircuits/peerings/connections@2022-01-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    addressPrefix: 'string'
    authorizationKey: 'string'
    expressRouteCircuitPeering: {
      id: 'string'
    }
    ipv6CircuitConnectionConfig: {
      addressPrefix: 'string'
    }
    peerExpressRouteCircuitPeering: {
      id: 'string'
    }
  }
}

Özellik Değerleri

Microsoft.Network/expressRouteCircuits/eşlemeler/bağlantılar

Ad Açıklama Değer
ad Kaynak adı dize (gerekli)
ebeveyn Bicep'te bir alt kaynak için üst kaynak belirtebilirsiniz. Bu özelliği yalnızca alt kaynak üst kaynağın dışında bildirildiğinde eklemeniz gerekir.

Daha fazla bilgi için bkz. Alt kaynaküst kaynak dışında.
Kaynak türü için sembolik ad: expressRouteCircuits/peerings
Özellikler Express route bağlantı hattı bağlantısının özellikleri. ExpressRouteCircuitConnectionPropertiesFormat

ExpressRouteCircuitConnectionPropertiesFormat

Ad Açıklama Değer
addressPrefix Tüneller için Müşteri adreslerini oymak için IP adresi alanını /29. dizgi
yetkilendirme anahtarı Yetkilendirme anahtarı. dizgi
expressRouteCircuitPeering Bağlantı başlatan bağlantı hattının Express Route Circuit Özel Eşleme Kaynağına başvuru. AltKaynak
ipv6CircuitConnectionConfig Hızlı yol bağlantı hattı bağlantısının IPv6 Adres Ön EkiÖzellikler. Ipv6CircuitConnectionConfig
peerExpressRouteCircuitPeering Eşlenen bağlantı hattının Express Route Devresi Özel Eşleme Kaynağına başvuru. AltKaynak

Ipv6CircuitConnectionConfig

Ad Açıklama Değer
addressPrefix Genel erişim için müşteri adreslerini oymak için IP adresi alanını /125. dizgi

Alt Kaynak

Ad Açıklama Değer
Kimliği Kaynak Kimliği. dizgi

ARM şablonu kaynak tanımı

expressRouteCircuits/peerings/connections kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:

Kullanım Örnekleri

Kaynak biçimi

Microsoft.Network/expressRouteCircuits/peerings/connections kaynağı oluşturmak için, şablonunuza aşağıdaki JSON'u ekleyin.

{
  "type": "Microsoft.Network/expressRouteCircuits/peerings/connections",
  "apiVersion": "2022-01-01",
  "name": "string",
  "properties": {
    "addressPrefix": "string",
    "authorizationKey": "string",
    "expressRouteCircuitPeering": {
      "id": "string"
    },
    "ipv6CircuitConnectionConfig": {
      "addressPrefix": "string"
    },
    "peerExpressRouteCircuitPeering": {
      "id": "string"
    }
  }
}

Özellik Değerleri

Microsoft.Network/expressRouteCircuits/eşlemeler/bağlantılar

Ad Açıklama Değer
apiVersiyonu API sürümü '2022-01-01'
ad Kaynak adı dize (gerekli)
Özellikler Express route bağlantı hattı bağlantısının özellikleri. ExpressRouteCircuitConnectionPropertiesFormat
tür Kaynak türü 'Microsoft.Network/expressRouteCircuits/peerings/connections'

ExpressRouteCircuitConnectionPropertiesFormat

Ad Açıklama Değer
addressPrefix Tüneller için Müşteri adreslerini oymak için IP adresi alanını /29. dizgi
yetkilendirme anahtarı Yetkilendirme anahtarı. dizgi
expressRouteCircuitPeering Bağlantı başlatan bağlantı hattının Express Route Circuit Özel Eşleme Kaynağına başvuru. AltKaynak
ipv6CircuitConnectionConfig Hızlı yol bağlantı hattı bağlantısının IPv6 Adres Ön EkiÖzellikler. Ipv6CircuitConnectionConfig
peerExpressRouteCircuitPeering Eşlenen bağlantı hattının Express Route Devresi Özel Eşleme Kaynağına başvuru. AltKaynak

Ipv6CircuitConnectionConfig

Ad Açıklama Değer
addressPrefix Genel erişim için müşteri adreslerini oymak için IP adresi alanını /125. dizgi

Alt Kaynak

Ad Açıklama Değer
Kimliği Kaynak Kimliği. dizgi

Terraform (AzAPI sağlayıcısı) kaynak tanımı

expressRouteCircuits/peerings/connections kaynak türü, aşağıdakileri hedefleyen işlemlerle dağıtılabilir:

Kullanım Örnekleri

Terraform Örnekleri

Express Route Bağlantı Hattı Bağlantısı dağıtmanın temel bir örneği.

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    = ["*"]
}

Kaynak biçimi

Microsoft.Network/expressRouteCircuits/peerings/connections kaynağı oluşturmak için şablonunuza aşağıdaki Terraform'u ekleyin.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/expressRouteCircuits/peerings/connections@2022-01-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      addressPrefix = "string"
      authorizationKey = "string"
      expressRouteCircuitPeering = {
        id = "string"
      }
      ipv6CircuitConnectionConfig = {
        addressPrefix = "string"
      }
      peerExpressRouteCircuitPeering = {
        id = "string"
      }
    }
  }
}

Özellik Değerleri

Microsoft.Network/expressRouteCircuits/eşlemeler/bağlantılar

Ad Açıklama Değer
ad Kaynak adı dize (gerekli)
ebeveyn_kimlik Bu kaynağın üst öğesi olan kaynağın kimliği. Tür kaynağı kimliği: expressRouteCircuits/peerings
Özellikler Express route bağlantı hattı bağlantısının özellikleri. ExpressRouteCircuitConnectionPropertiesFormat
tür Kaynak türü "Microsoft.Network/expressRouteCircuits/peerings/connections@2022-01-01"

ExpressRouteCircuitConnectionPropertiesFormat

Ad Açıklama Değer
addressPrefix Tüneller için Müşteri adreslerini oymak için IP adresi alanını /29. dizgi
yetkilendirme anahtarı Yetkilendirme anahtarı. dizgi
expressRouteCircuitPeering Bağlantı başlatan bağlantı hattının Express Route Circuit Özel Eşleme Kaynağına başvuru. AltKaynak
ipv6CircuitConnectionConfig Hızlı yol bağlantı hattı bağlantısının IPv6 Adres Ön EkiÖzellikler. Ipv6CircuitConnectionConfig
peerExpressRouteCircuitPeering Eşlenen bağlantı hattının Express Route Devresi Özel Eşleme Kaynağına başvuru. AltKaynak

Ipv6CircuitConnectionConfig

Ad Açıklama Değer
addressPrefix Genel erişim için müşteri adreslerini oymak için IP adresi alanını /125. dizgi

Alt Kaynak

Ad Açıklama Değer
Kimliği Kaynak Kimliği. dizgi