Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
- più recenti
- 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
- 01-01-2022
- 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
Definizione di risorsa Bicep
Il tipo di risorsa expressRouteCircuits/peerings/connections può essere distribuito con operazioni destinate a:
Per un elenco delle proprietà modificate in ogni versione dell'API, vedere log delle modifiche.
Esempi di utilizzo
Esempi bicep
Esempio di base di distribuzione della connessione al circuito 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
}
}
}
Formato risorsa
Per creare una risorsa Microsoft.Network/expressRouteCircuits/peerings/connections, aggiungere il bicep seguente al modello.
resource symbolicname 'Microsoft.Network/expressRouteCircuits/peerings/connections@2019-02-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
addressPrefix: 'string'
authorizationKey: 'string'
expressRouteCircuitPeering: {
id: 'string'
}
peerExpressRouteCircuitPeering: {
id: 'string'
}
}
}
Valori delle proprietà
Microsoft.Network/expressRouteCircuits/peering/connessioni
| Nome | Descrizione | Valore |
|---|---|---|
| nome | Nome della risorsa | stringa (obbligatorio) |
| genitore | In Bicep è possibile specificare la risorsa padre per una risorsa figlio. È necessario aggiungere questa proprietà solo quando la risorsa figlio viene dichiarata all'esterno della risorsa padre. Per altre informazioni, vedere risorsa figlio all'esterno della risorsa padre. |
Nome simbolico per la risorsa di tipo: expressRouteCircuits/peering |
| proprietà | Proprietà della connessione del circuito ExpressRoute. | ExpressRouteCircuitConnectionPropertiesFormat |
ExpressRouteCircuitConnectionPropertiesFormat
Sottorisorsa
| Nome | Descrizione | Valore |
|---|---|---|
| Id | ID risorsa. | corda |
Definizione di risorsa del modello di Resource Manager
Il tipo di risorsa expressRouteCircuits/peerings/connections può essere distribuito con operazioni destinate a:
- Gruppi di risorse - Vedi comandi di distribuzione dei gruppi di risorse Per un elenco delle proprietà modificate in ciascuna versione API, vedi registro delle modifiche.
Esempi di utilizzo
Formato risorsa
Per creare una risorsa Microsoft.Network/expressRouteCircuits/peerings/connections, aggiungere il codice JSON seguente al modello.
{
"type": "Microsoft.Network/expressRouteCircuits/peerings/connections",
"apiVersion": "2019-02-01",
"name": "string",
"properties": {
"addressPrefix": "string",
"authorizationKey": "string",
"expressRouteCircuitPeering": {
"id": "string"
},
"peerExpressRouteCircuitPeering": {
"id": "string"
}
}
}
Valori delle proprietà
Microsoft.Network/expressRouteCircuits/peering/connessioni
| Nome | Descrizione | Valore |
|---|---|---|
| versione dell'API | Versione dell'API | '2019-02-01' |
| nome | Nome della risorsa | stringa (obbligatorio) |
| proprietà | Proprietà della connessione del circuito ExpressRoute. | ExpressRouteCircuitConnectionPropertiesFormat |
| digitare | Tipo di risorsa | 'Microsoft.Network/expressRouteCircuits/peering/connessioni' |
ExpressRouteCircuitConnectionPropertiesFormat
Sottorisorsa
| Nome | Descrizione | Valore |
|---|---|---|
| Id | ID risorsa. | corda |
Definizione di risorsa Terraform (provider AzAPI)
Il tipo di risorsa expressRouteCircuits/peerings/connections può essere distribuito con operazioni destinate a:
- Gruppi di risorse Per un elenco delle proprietà modificate in ogni versione dell'API, vedi il registro modifiche.
Esempi di utilizzo
Esempi di Terraform
Esempio di base di distribuzione della connessione al circuito 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 = ["*"]
}
Formato risorsa
Per creare una risorsa Microsoft.Network/expressRouteCircuits/peerings/connections, aggiungere il codice Terraform seguente al modello.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/expressRouteCircuits/peerings/connections@2019-02-01"
name = "string"
parent_id = "string"
body = {
properties = {
addressPrefix = "string"
authorizationKey = "string"
expressRouteCircuitPeering = {
id = "string"
}
peerExpressRouteCircuitPeering = {
id = "string"
}
}
}
}
Valori delle proprietà
Microsoft.Network/expressRouteCircuits/peering/connessioni
| Nome | Descrizione | Valore |
|---|---|---|
| nome | Nome della risorsa | stringa (obbligatorio) |
| parent_id | ID della risorsa padre per questa risorsa. | ID per la risorsa di tipo: expressRouteCircuits/peering |
| proprietà | Proprietà della connessione del circuito ExpressRoute. | ExpressRouteCircuitConnectionPropertiesFormat |
| digitare | Tipo di risorsa | "Microsoft.Network/expressRouteCircuits/peering/connections@2019-02-01" |
ExpressRouteCircuitConnectionPropertiesFormat
Sottorisorsa
| Nome | Descrizione | Valore |
|---|---|---|
| Id | ID risorsa. | corda |