Share via


Microsoft.Peering peerAsns 2019-09-01-preview

Bicep resource definition

The peerAsns resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Peering/peerAsns resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Peering/peerAsns@2019-09-01-preview' = {
  scope: resourceSymbolicName or scope
  name: 'string'
  properties: {
    peerAsn: int
    peerContactInfo: {
      emails: [
        'string'
      ]
      phone: [
        'string'
      ]
    }
    peerName: 'string'
    validationState: 'string'
  }
}

Property Values

Microsoft.Peering/peerAsns

Name Description Value
name The resource name string (required)
properties The properties that define a peer's ASN. PeerAsnProperties
scope Use when creating a resource at a scope that is different than the deployment scope. Set this property to the symbolic name of a resource to apply the extension resource.

ContactInfo

Name Description Value
emails The list of email addresses. string[]
phone The list of contact numbers. string[]

PeerAsnProperties

Name Description Value
peerAsn The Autonomous System Number (ASN) of the peer. int
peerContactInfo The contact information of the peer. ContactInfo
peerName The name of the peer. string
validationState The validation state of the ASN associated with the peer. 'Approved'
'Failed'
'None'
'Pending'

ARM template resource definition

The peerAsns resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Peering/peerAsns resource, add the following JSON to your template.

{
  "type": "Microsoft.Peering/peerAsns",
  "apiVersion": "2019-09-01-preview",
  "name": "string",
  "properties": {
    "peerAsn": "int",
    "peerContactInfo": {
      "emails": [ "string" ],
      "phone": [ "string" ]
    },
    "peerName": "string",
    "validationState": "string"
  }
}

Property Values

Microsoft.Peering/peerAsns

Name Description Value
apiVersion The api version '2019-09-01-preview'
name The resource name string (required)
properties The properties that define a peer's ASN. PeerAsnProperties
type The resource type 'Microsoft.Peering/peerAsns'

ContactInfo

Name Description Value
emails The list of email addresses. string[]
phone The list of contact numbers. string[]

PeerAsnProperties

Name Description Value
peerAsn The Autonomous System Number (ASN) of the peer. int
peerContactInfo The contact information of the peer. ContactInfo
peerName The name of the peer. string
validationState The validation state of the ASN associated with the peer. 'Approved'
'Failed'
'None'
'Pending'

Usage Examples

Terraform (AzAPI provider) resource definition

The peerAsns resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Peering/peerAsns resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Peering/peerAsns@2019-09-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      peerAsn = int
      peerContactInfo = {
        emails = [
          "string"
        ]
        phone = [
          "string"
        ]
      }
      peerName = "string"
      validationState = "string"
    }
  }
}

Property Values

Microsoft.Peering/peerAsns

Name Description Value
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties The properties that define a peer's ASN. PeerAsnProperties
type The resource type "Microsoft.Peering/peerAsns@2019-09-01-preview"

ContactInfo

Name Description Value
emails The list of email addresses. string[]
phone The list of contact numbers. string[]

PeerAsnProperties

Name Description Value
peerAsn The Autonomous System Number (ASN) of the peer. int
peerContactInfo The contact information of the peer. ContactInfo
peerName The name of the peer. string
validationState The validation state of the ASN associated with the peer. 'Approved'
'Failed'
'None'
'Pending'