github.com/tomaszheflik/terraform@v0.7.3-0.20160827060421-32f990b41594/website/source/docs/providers/azurerm/r/servicebus_namespace.html.markdown (about) 1 --- 2 layout: "azurerm" 3 page_title: "Azure Resource Manager: azurerm_servicebus_namespace" 4 sidebar_current: "docs-azurerm-resource-servicebus-namespace" 5 description: |- 6 Create a ServiceBus Namespace. 7 --- 8 9 # azurerm\_servicebus\_namespace 10 11 Create a ServiceBus Namespace. 12 13 ## Example Usage 14 15 ``` 16 resource "azurerm_resource_group" "test" { 17 name = "resourceGroup1" 18 location = "West US" 19 } 20 21 resource "azurerm_servicebus_namespace" "test" { 22 name = "acceptanceTestServiceBusNamespace" 23 location = "West US" 24 resource_group_name = "${azurerm_resource_group.test.name}" 25 sku = "basic" 26 27 tags { 28 environment = "Production" 29 } 30 } 31 ``` 32 33 ## Argument Reference 34 35 The following arguments are supported: 36 37 * `name` - (Required) Specifies the name of the ServiceBus Namespace resource . Changing this forces a 38 new resource to be created. 39 40 * `resource_group_name` - (Required) The name of the resource group in which to 41 create the namespace. 42 43 * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. 44 45 * `sku` - (Required) Defines which tier to use. Options are basic, standard or premium. 46 47 * `capacity` - (Optional) Specifies the capacity of a premium namespace. Can be 1, 2 or 4 48 49 * `tags` - (Optional) A mapping of tags to assign to the resource. 50 51 ## Attributes Reference 52 53 The following attributes are exported: 54 55 * `id` - The ServiceBus Namespace ID.