Microsoft.Network expressRoute回線/ピアリング/接続 2020-06-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@2020-06-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    addressPrefix: 'string'
    authorizationKey: 'string'
    expressRouteCircuitPeering: {
      id: 'string'
    }
    ipv6CircuitConnectionConfig: {
      addressPrefix: 'string'
    }
    peerExpressRouteCircuitPeering: {
      id: 'string'
    }
  }
}

プロパティ値

Microsoft.Network/expressRouteCircuits/peerings/connections

名前 形容 価値
名前 リソース名 string (必須)
親 Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「親リソースの外部 子リソース」を参照してください。
種類のリソースのシンボリック名: expressRouteCircuits/peerings
プロパティ 高速ルート回線接続のプロパティ。 ExpressRouteCircuitConnectionPropertiesFormat

ExpressRouteCircuitConnectionPropertiesFormat

名前 形容 価値
アドレスプレフィックス /29 IP アドレス空間を使用して、トンネルの顧客アドレスを切り開きます。 文字列
authorizationキー 承認キー。 文字列
expressRouteCircuitPeering (英語) 回線開始接続の Express Route 回線プライベート ピアリング リソースへの参照。 SubResource の
ipv6CircuitConnectionConfig(英語) 高速ルート回線接続の IPv6 アドレス PrefixProperties。 ipv6CircuitConnectionConfig (英語)
peerExpressRouteCircuitピアリング ピアリングされた回線の Express Route 回線プライベート ピアリング リソースへの参照。 SubResource の

ipv6CircuitConnectionConfig (英語)

名前 形容 価値
アドレスプレフィックス /125 IP アドレス空間を使用して、グローバルにアクセスできるように顧客のアドレスを切り開きます。 文字列

サブリソース

名前 形容 価値
身分証明書 リソース ID。 文字列

ARM テンプレート リソース定義

expressRouteCircuits/peerings/connections リソースの種類は、次を対象とする操作と共にデプロイできます。

使用例

リソースの形式

Microsoft.Network/expressRouteCircuits/peerings/connections リソースを作成するには、次の JSON をテンプレートに追加します。

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

プロパティ値

Microsoft.Network/expressRouteCircuits/peerings/connections

名前 形容 価値
apiVersion (英語) API のバージョン '2020-06-01'
名前 リソース名 string (必須)
プロパティ 高速ルート回線接続のプロパティ。 ExpressRouteCircuitConnectionPropertiesFormat
型 リソースの種類 'Microsoft.Network/expressRouteCircuits/peerings/connections'

ExpressRouteCircuitConnectionPropertiesFormat

名前 形容 価値
アドレスプレフィックス /29 IP アドレス空間を使用して、トンネルの顧客アドレスを切り開きます。 文字列
authorizationキー 承認キー。 文字列
expressRouteCircuitPeering (英語) 回線開始接続の Express Route 回線プライベート ピアリング リソースへの参照。 SubResource の
ipv6CircuitConnectionConfig(英語) 高速ルート回線接続の IPv6 アドレス PrefixProperties。 ipv6CircuitConnectionConfig (英語)
peerExpressRouteCircuitピアリング ピアリングされた回線の Express Route 回線プライベート ピアリング リソースへの参照。 SubResource の

ipv6CircuitConnectionConfig (英語)

名前 形容 価値
アドレスプレフィックス /125 IP アドレス空間を使用して、グローバルにアクセスできるように顧客のアドレスを切り開きます。 文字列

サブリソース

名前 形容 価値
身分証明書 リソース ID。 文字列

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@2020-06-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      addressPrefix = "string"
      authorizationKey = "string"
      expressRouteCircuitPeering = {
        id = "string"
      }
      ipv6CircuitConnectionConfig = {
        addressPrefix = "string"
      }
      peerExpressRouteCircuitPeering = {
        id = "string"
      }
    }
  }
}

プロパティ値

Microsoft.Network/expressRouteCircuits/peerings/connections

名前 形容 価値
名前 リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: expressRouteCircuits/peerings
プロパティ 高速ルート回線接続のプロパティ。 ExpressRouteCircuitConnectionPropertiesFormat
型 リソースの種類 "Microsoft.Network/expressRouteCircuits/peerings/connections@2020-06-01"

ExpressRouteCircuitConnectionPropertiesFormat

名前 形容 価値
アドレスプレフィックス /29 IP アドレス空間を使用して、トンネルの顧客アドレスを切り開きます。 文字列
authorizationキー 承認キー。 文字列
expressRouteCircuitPeering (英語) 回線開始接続の Express Route 回線プライベート ピアリング リソースへの参照。 SubResource の
ipv6CircuitConnectionConfig(英語) 高速ルート回線接続の IPv6 アドレス PrefixProperties。 ipv6CircuitConnectionConfig (英語)
peerExpressRouteCircuitピアリング ピアリングされた回線の Express Route 回線プライベート ピアリング リソースへの参照。 SubResource の

ipv6CircuitConnectionConfig (英語)

名前 形容 価値
アドレスプレフィックス /125 IP アドレス空間を使用して、グローバルにアクセスできるように顧客のアドレスを切り開きます。 文字列

サブリソース

名前 形容 価値
身分証明書 リソース ID。 文字列