FEATURES PRICING ABOUT DOCS LOGIN

azurerm_servicebus_subscription

Create a ServiceBus Subscription.

Example Usage

resource "azurerm_resource_group" "test" {
    name = "resourceGroup1"
    location = "West US"
}

resource "azurerm_servicebus_namespace" "test" {
    name = "acceptanceTestServiceBusNamespace"
    location = "West US"
    resource_group_name = "${azurerm_resource_group.test.name}"
    sku = "standard"

    tags {
        environment = "Production"
    }
}

resource "azurerm_servicebus_topic" "test" {
    name = "testTopic"
    location = "West US"
    resource_group_name = "${azurerm_resource_group.test.name}"
    namespace_name = "${azurerm_servicebus_namespace.test.name}"

    enable_partitioning = true
}

resource "azurerm_servicebus_subscription" "test" {
    name = "testSubscription"
    location = "West US"
    resource_group_name = "${azurerm_resource_group.test.name}"
    namespace_name = "${azurerm_servicebus_namespace.test.name}"
    topic_name = "${azurerm_servicebus_topic.test.name}"
    max_delivery_count = 1
}

Argument Reference

The following arguments are supported:

TimeSpan Format

Some arguments for this resource are required in the TimeSpan format which is used to represent a lengh of time. The supported format is documented here

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO