Microsoft.Network expressRouteCircuits/autorisaties 2019-11-01

Bicep-resourcedefinitie

Het resourcetype expressRouteCircuits/authorizations kan worden geïmplementeerd met bewerkingen die zijn gericht op:

Zie logboek wijzigenvoor een lijst met gewijzigde eigenschappen in elke API-versie.

Gebruiksvoorbeelden

Bicep-voorbeelden

Een eenvoudig voorbeeld van het implementeren van ExpressRoute Circuit Authorization.

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

Resource-indeling

Als u een Resource Microsoft.Network/expressRouteCircuits/authorizations wilt maken, voegt u de volgende Bicep toe aan uw sjabloon.

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

Eigenschapswaarden

Microsoft.Network/expressRouteCircuits/authorizations

Naam Beschrijving Waarde
naam De resourcenaam tekenreeks (vereist)
ouder In Bicep kunt u de bovenliggende resource voor een onderliggende resource opgeven. U hoeft deze eigenschap alleen toe te voegen wanneer de onderliggende resource buiten de bovenliggende resource wordt gedeclareerd.

Zie onderliggende resource buiten de bovenliggende resourcevoor meer informatie.
Symbolische naam voor resource van het type: expressRouteCircuits
Eigenschappen Eigenschappen van de autorisatie van het Express Route-circuit. AuthorizationPropertiesFormat

AuthorizationPropertiesFormat

Naam Beschrijving Waarde
autorisatie De autorisatiesleutel. snaar
autorisatieUseStatus De autorisatiegebruiksstatus. 'Beschikbaar'
'In gebruik'

Resourcedefinitie van ARM-sjabloon

Het resourcetype expressRouteCircuits/authorizations kan worden geïmplementeerd met bewerkingen die zijn gericht op:

Gebruiksvoorbeelden

Resource-indeling

Als u een resource Microsoft.Network/expressRouteCircuits/authorizations wilt maken, voegt u de volgende JSON toe aan uw sjabloon.

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

Eigenschapswaarden

Microsoft.Network/expressRouteCircuits/authorizations

Naam Beschrijving Waarde
apiVersion De API-versie '2019-11-01'
naam De resourcenaam tekenreeks (vereist)
Eigenschappen Eigenschappen van de autorisatie van het Express Route-circuit. AuthorizationPropertiesFormat
soort Het resourcetype 'Microsoft.Network/expressRouteCircuits/authorizations'

AuthorizationPropertiesFormat

Naam Beschrijving Waarde
autorisatie De autorisatiesleutel. snaar
autorisatieUseStatus De autorisatiegebruiksstatus. 'Beschikbaar'
'In gebruik'

Resourcedefinitie van Terraform (AzAPI-provider)

Het resourcetype expressRouteCircuits/authorizations kan worden geïmplementeerd met bewerkingen die zijn gericht op:

  • Resourcegroepen Voor een lijst van gewijzigde eigenschappen in elke API-versie, zie wijzigingslogboek.

Gebruiksvoorbeelden

Terraform-monsters

Een eenvoudig voorbeeld van het implementeren van ExpressRoute Circuit Authorization.

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

Resource-indeling

Als u een Resource Microsoft.Network/expressRouteCircuits/authorizations wilt maken, voegt u de volgende Terraform toe aan uw sjabloon.

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

Eigenschapswaarden

Microsoft.Network/expressRouteCircuits/authorizations

Naam Beschrijving Waarde
naam De resourcenaam tekenreeks (vereist)
ouder_id De id van de resource die het bovenliggende item voor deze resource is. Id voor resource van het type: expressRouteCircuits
Eigenschappen Eigenschappen van de autorisatie van het Express Route-circuit. AuthorizationPropertiesFormat
soort Het resourcetype "Microsoft.Network/expressRouteCircuits/authorizations@2019-11-01"

AuthorizationPropertiesFormat

Naam Beschrijving Waarde
autorisatie De autorisatiesleutel. snaar
autorisatieUseStatus De autorisatiegebruiksstatus. 'Beschikbaar'
'In gebruik'