azurerm_servicebus_namespace

Manages a ServiceBus Namespace.

Example Usage

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "terraform-servicebus"
  location = "West Europe"
}

resource "azurerm_servicebus_namespace" "example" {
  name                = "tfex-servicebus-namespace"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Standard"

  tags = {
    source = "terraform"
  }
}

Argument Reference

The following arguments are supported:


An identity block supports the following:



A customer_managed_key block supports the following:


A network_rule_set block supports the following:


A network_rules block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A identity block exports the following:


The following attributes are exported only if there is an authorization rule named RootManageSharedAccessKey which is created automatically by Azure.


A identity block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Service Bus Namespace can be imported using the resource id, e.g.

terraform import azurerm_servicebus_namespace.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceBus/namespaces/sbns1