Azure Messaging Subscription

This page shows how to write Terraform for Messaging Subscription and write them securely.

azurerm_servicebus_subscription (Terraform)

The Subscription in Messaging can be configured in Terraform with the resource name azurerm_servicebus_subscription. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "azurerm_servicebus_subscription" "testsbsubscription1" {
  name                = var.sbsubscription1
  resource_group_name =
  namespace_name      =
  topic_name          =
  max_delivery_count  = var.max_delivery_count1
resource "azurerm_servicebus_subscription" "static-data-notification" {
  name                = "static-data-notification"
  resource_group_name = "cqrs-resourcegroup"
  namespace_name      = "cqrs-servicebus-namespace"
  topic_name          = "static-data-update-started"
  max_delivery_count  = 1

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


Explanation in Terraform Registry

Manages a ServiceBus Subscription.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Messaging Subscription?

Azure Messaging Subscription is a resource for Messaging of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Messaging Subscription?

For Terraform, the iac-coder/modularteracodestructure and amarfut/azure_scripts source code examples are useful. See the Terraform Example section for further details.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.