Use this data source to access information about an existing ServiceBus Namespace.
data "azurerm_servicebus_namespace" "example" {
name = "examplenamespace"
resource_group_name = "example-resources"
}
output "location" {
value = data.azurerm_servicebus_namespace.example.location
}
name
- Specifies the name of the ServiceBus Namespace.
resource_group_name
- Specifies the name of the Resource Group where the ServiceBus Namespace exists.
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.
premium_messaging_partitions
- The messaging partitions of the ServiceBus Namespace.
zone_redundant
- Whether or not this ServiceBus Namespace is zone redundant.
endpoint
- The URL to access 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
.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the ServiceBus Namespace.