Azure Network Filter

This page shows how to write Terraform and Azure Resource Manager for Network Filter and write them securely.

azurerm_route_filter (Terraform)

The Filter in Network can be configured in Terraform with the resource name azurerm_route_filter. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Route Filter.

Tips: Best Practices for The Other Azure Network Resources

In addition to the azurerm_network_security_group, Azure Network has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.

risk-label

azurerm_network_security_group

Ensure to disable RDP port from the Internet

It is better to disable the RDP port from the Internet. RDP access should not be accepted from the Internet (*, 0.0.0.0, /0, internet, any), and consider using the Azure Bastion Service.

risk-label

azurerm_network_security_rule

Ensure to set a more restrictive CIDR range for ingress from the internet

It is better to set a more restrictive CIDR range not to use very broad subnets. If possible, segments should be divided into smaller subnets.

risk-label

azurerm_network_watcher_flow_log

Ensure to enable Retention policy for flow logs and set it to enough duration

It is better to enable a retention policy for flow logs. Flow logs show us all network activity in the cloud environment and support us when we face critical incidents.

Review your Azure Network settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

Microsoft.Network/routeFilters (Azure Resource Manager)

The routeFilters in Microsoft.Network can be configured in Azure Resource Manager with the resource name Microsoft.Network/routeFilters. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",
RouteFilterCreate.json#L37
                "type": "Microsoft.Network/routeFilters",
                "tags": {
                    "key1": "value1"
                },
                "properties": {
                    "provisioningState": "Succeeded",

Parameters

  • name required - string
  • type required - string
  • apiVersion required - string
  • location required - string

    Resource location.

  • tags optional - string

    Resource tags.

  • properties required
      • rules optional array
          • properties optional
              • access required - string

                The access type of the rule.

              • routeFilterRuleType required - string

                The rule type of the rule.

              • communities required - array

                The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].

          • name optional - string

            The name of the resource that is unique within a resource group. This name can be used to access the resource.

          • location optional - string

            Resource location.

Frequently asked questions

What is Azure Network Filter?

Azure Network Filter is a resource for Network of Microsoft Azure. Settings can be wrote in Terraform.