Microsoft.Network expressRouteCircuits/yetkilendirmeler 2022-07-01

Bicep kaynak tanımı

expressRouteCircuits/authorizations 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

ExpressRoute Bağlantı Hattı Yetkilendirmesi'ni dağıtmanın temel bir örneği.

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource expressRouteCircuit 'Microsoft.Network/expressRouteCircuits@2022-07-01' = {
  name: resourceName
  location: location
  sku: {
    family: 'MeteredData'
    name: 'Standard_MeteredData'
    tier: 'Standard'
  }
  properties: {
    authorizationKey: ''
    serviceProviderProperties: {
      bandwidthInMbps: 50
      peeringLocation: 'Silicon Valley'
      serviceProviderName: 'Equinix'
    }
  }
  tags: {
    Environment: 'production'
    Purpose: 'AcceptanceTests'
  }
}

resource authorization 'Microsoft.Network/expressRouteCircuits/authorizations@2022-07-01' = {
  name: resourceName
  parent: expressRouteCircuit
  properties: {}
}

Kaynak biçimi

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

resource symbolicname 'Microsoft.Network/expressRouteCircuits/authorizations@2022-07-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    authorizationKey: 'string'
    authorizationUseStatus: 'string'
  }
}

Özellik Değerleri

Microsoft.Network/expressRouteCircuits/authorizations

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
Özellikler Express route bağlantı hattı yetkilendirmesinin özellikleri. AuthorizationPropertiesFormat

AuthorizationPropertiesFormat

Ad Açıklama Değer
yetkilendirme anahtarı Yetkilendirme anahtarı. dizgi
authorizationUseStatus Yetkilendirme kullanım durumu. 'Kullanılabilir'
'Kullanımda'

ARM şablonu kaynak tanımı

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

Kullanım Örnekleri

Kaynak biçimi

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

{
  "type": "Microsoft.Network/expressRouteCircuits/authorizations",
  "apiVersion": "2022-07-01",
  "name": "string",
  "properties": {
    "authorizationKey": "string",
    "authorizationUseStatus": "string"
  }
}

Özellik Değerleri

Microsoft.Network/expressRouteCircuits/authorizations

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

AuthorizationPropertiesFormat

Ad Açıklama Değer
yetkilendirme anahtarı Yetkilendirme anahtarı. dizgi
authorizationUseStatus Yetkilendirme kullanım durumu. 'Kullanılabilir'
'Kullanımda'

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

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

Kullanım Örnekleri

Terraform Örnekleri

ExpressRoute Bağlantı Hattı Yetkilendirmesi'ni 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"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

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 = ""
      serviceProviderProperties = {
        bandwidthInMbps     = 50
        peeringLocation     = "Silicon Valley"
        serviceProviderName = "Equinix"
      }
    }
    sku = {
      family = "MeteredData"
      name   = "Standard_MeteredData"
      tier   = "Standard"
    }
    tags = {
      Environment = "production"
      Purpose     = "AcceptanceTests"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "authorization" {
  type      = "Microsoft.Network/expressRouteCircuits/authorizations@2022-07-01"
  parent_id = azapi_resource.expressRouteCircuit.id
  name      = var.resource_name
  body = {
    properties = {
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

Kaynak biçimi

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/expressRouteCircuits/authorizations@2022-07-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      authorizationKey = "string"
      authorizationUseStatus = "string"
    }
  }
}

Özellik Değerleri

Microsoft.Network/expressRouteCircuits/authorizations

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

AuthorizationPropertiesFormat

Ad Açıklama Değer
yetkilendirme anahtarı Yetkilendirme anahtarı. dizgi
authorizationUseStatus Yetkilendirme kullanım durumu. 'Kullanılabilir'
'Kullanımda'