Microsoft.Network expressRouteCircuits/承認 2019-11-01

Bicep リソース定義

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

  • リソース グループの - リソース グループのデプロイ コマンド 参照

各 API バージョンで変更されたプロパティの一覧については、変更ログの参照してください。

使用例

Bicep サンプル

ExpressRoute 回線承認のデプロイの基本的な例。

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

リソースの形式

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

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

プロパティ値

Microsoft.Network/expressRouteCircuits/authorizations

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

詳細については、「親リソースの外部 子リソース」を参照してください。
種類のリソースのシンボリック名: expressRouteCircuits
プロパティ Express Route 回線の承認のプロパティ。 AuthorizationPropertiesFormat の

AuthorizationPropertiesFormat

名前 形容 価値
authorizationキー 承認キー。 文字列
authorizationUseStatus(英語) 承認の使用状態。 「利用可能」
「使用中」

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

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

使用例

リソースの形式

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

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

プロパティ値

Microsoft.Network/expressRouteCircuits/authorizations

名前 形容 価値
apiVersion (英語) API のバージョン '2019-11-01'
名前 リソース名 string (必須)
プロパティ Express Route 回線の承認のプロパティ。 AuthorizationPropertiesFormat の
型 リソースの種類 'Microsoft.Network/expressRouteCircuits/authorizations'

AuthorizationPropertiesFormat

名前 形容 価値
authorizationキー 承認キー。 文字列
authorizationUseStatus(英語) 承認の使用状態。 「利用可能」
「使用中」

Terraform (AzAPI プロバイダー) リソース定義

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

  • リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。

使用例

Terraformサンプル

ExpressRoute 回線承認のデプロイの基本的な例。

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

リソースの形式

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

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

プロパティ値

Microsoft.Network/expressRouteCircuits/authorizations

名前 形容 価値
名前 リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: expressRouteCircuits
プロパティ Express Route 回線の承認のプロパティ。 AuthorizationPropertiesFormat の
型 リソースの種類 "Microsoft.Network/expressRouteCircuits/authorizations@2019-11-01"

AuthorizationPropertiesFormat

名前 形容 価値
authorizationキー 承認キー。 文字列
authorizationUseStatus(英語) 承認の使用状態。 「利用可能」
「使用中」