Azure Messaging Namespace Network Rule Set

This page shows how to write Terraform and Azure Resource Manager for Messaging Namespace Network Rule Set and write them securely.

azurerm_servicebus_namespace_network_rule_set (Terraform)

The Namespace Network Rule Set in Messaging can be configured in Terraform with the resource name azurerm_servicebus_namespace_network_rule_set. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

resources.tf#L18
resource "azurerm_servicebus_namespace_network_rule_set" "namespace_network_rule_set" {
  count = var.sku == "premium" ? 1 : 0

  namespace_name      = azurerm_servicebus_namespace.namespace.name
  resource_group_name = var.resource_group_name

main.tf#L7
resource "azurerm_servicebus_namespace_network_rule_set" "this" {
  default_action      = var.default_action
  ip_rules            = var.ip_rules
  namespace_name      = var.namespace_name
  resource_group_name = var.resource_group_name

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 ServiceBus Namespace Network Rule Set Set.

Microsoft.Servicebus/namespaces/networkrulesets (Azure Resource Manager)

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

Example Usage from GitHub

An example could not be found in GitHub.

Frequently asked questions

What is Azure Messaging Namespace Network Rule Set?

Azure Messaging Namespace Network Rule Set is a resource for Messaging of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Messaging Namespace Network Rule Set?

For Terraform, the fnietoga/terratemplates and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.