github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    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.
    56  
    57  The following attributes are exported only if there is an authorization rule named
    58  `RootManageSharedAccessKey` which is created automatically by Azure.
    59  
    60  * `default_primary_connection_string` - The primary connection string for the authorization
    61      rule `RootManageSharedAccessKey`.
    62  
    63  * `default_secondary_connection_string` - The secondary connection string for the
    64      authorization rule `RootManageSharedAccessKey`.
    65  
    66  * `default_primary_key` - The primary access key for the authorization rule `RootManageSharedAccessKey`.
    67  
    68  * `default_secondary_key` - The secondary access key for the authorization rule `RootManageSharedAccessKey`.
    69  
    70  ## Import
    71  
    72  Service Bus Namespace can be imported using the `resource id`, e.g.
    73  
    74  ```
    75  terraform import azurerm_servicebus_namespace.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.servicebus/namespaces/sbns1
    76  ```