Microsoft.Network routeFilters 2021-02-01

The routeFilters 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/routeFilters resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Network/routeFilters@2021-02-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    rules: [
      {
        id: 'string'
        location: 'string'
        name: 'string'
        properties: {
          access: 'string'
          communities: [ 'string' ]
          routeFilterRuleType: 'Community'
        }
      }
    ]
  }
}

Property values

routeFilters

Name Description Value
type The resource type

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

For Bicep, set this value in the resource declaration.
'2021-02-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 Route Filter Resource. RouteFilterPropertiesFormat

RouteFilterPropertiesFormat

Name Description Value
rules Collection of RouteFilterRules contained within a route filter. RouteFilterRule[]

RouteFilterRule

Name Description Value
id Resource ID. string
location Resource location. string
name The name of the resource that is unique within a resource group. This name can be used to access the resource. string
properties Route Filter Rule Resource. RouteFilterRulePropertiesFormat

RouteFilterRulePropertiesFormat

Name Description Value
access Access to be allowed or denied. 'Allow'
'Deny'
communities The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. string[] (required)
routeFilterRuleType The rule type of the rule. 'Community'