Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (35 sloc) 1.7 KB
layout page_title sidebar_current description
azurerm
Azure Resource Manager: azurerm_servicebus_namespace
docs-azurerm-datasource-servicebus-namespace
Gets information about an existing ServiceBus Namespace.

Data Source: azurerm_servicebus_namespace

Use this data source to access information about an existing ServiceBus Namespace.

Example Usage

data "azurerm_servicebus_namespace" "test" {
  name                = "examplenamespace"
  resource_group_name = "example-resources"
}

output "location" {
  value = "${data.azurerm_servicebus_namespace.test.location}"
}

Argument Reference

  • name - (Required) Specifies the name of the ServiceBus Namespace.

  • resource_group_name - (Required) Specifies the name of the Resource Group where the ServiceBus Namespace exists.

Attributes Reference

  • location - The location of the Resource Group in which the ServiceBus Namespace exists.

  • sku - The Tier used for the ServiceBus Namespace.

  • capacity - The capacity of the ServiceBus Namespace.

  • tags - A mapping of tags assigned to the resource.

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

  • default_primary_connection_string - The primary connection string for the authorization rule RootManageSharedAccessKey.

  • default_secondary_connection_string - The secondary connection string for the authorization rule RootManageSharedAccessKey.

  • default_primary_key - The primary access key for the authorization rule RootManageSharedAccessKey.

  • default_secondary_key - The secondary access key for the authorization rule RootManageSharedAccessKey.

You can’t perform that action at this time.