Microsoft.Network virtualRouters 2020-06-01

The virtualRouters resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Network/virtualRouters resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Network/virtualRouters@2020-06-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    hostedGateway: {
      id: 'string'
    }
    hostedSubnet: {
      id: 'string'
    }
    virtualRouterAsn: int
    virtualRouterIps: [ 'string' ]
  }
}

Property values

virtualRouters

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Network/virtualRouters'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2020-06-01'
name The resource name string (required)
location Resource location. string
tags Resource tags. Dictionary of tag names and values. See Tags in templates
properties Virtual Router definition. VirtualRouterPropertiesFormat

VirtualRouterPropertiesFormat

Name Description Value
hostedGateway Reference to another subresource. SubResource
hostedSubnet Reference to another subresource. SubResource
virtualRouterAsn VirtualRouter ASN. int
virtualRouterIps VirtualRouter IPs. string[]

SubResource

Name Description Value
id Resource ID. string