Azure Messaging Namespace Disaster Recovery Config

This page shows how to write Terraform and Azure Resource Manager for Messaging Namespace Disaster Recovery Config and write them securely.

azurerm_servicebus_namespace_disaster_recovery_config (Terraform)

The Namespace Disaster Recovery Config in Messaging can be configured in Terraform with the resource name azurerm_servicebus_namespace_disaster_recovery_config. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

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).

Parameters

The following arguments are supported:

  • name - (Required) Specifies the name of the Disaster Recovery Config. This is the alias DNS name that will be created. Changing this forces a new resource to be created.

  • primary_namespace_id - (Required) The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.

  • partner_namespace_id - (Required) The ID of the Service Bus Namespace to replicate to.

The following attributes are exported:

  • id - The Service Bus Namespace Disaster Recovery Config ID.

  • primary_connection_string_alias - The alias Primary Connection String for the ServiceBus Namespace.

  • secondary_connection_string_alias - The alias Secondary Connection String for the ServiceBus Namespace

  • default_primary_key - The primary access key for the authorization rule RootManageSharedAccessKey.

  • default_secondary_key - The secondary access key for the authorization rule RootManageSharedAccessKey.

Explanation in Terraform Registry

Manages a Disaster Recovery Config for a Service Bus Namespace.

NOTE: Disaster Recovery Config is a Premium Sku only capability.

Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs (Azure Resource Manager)

The namespaces/disasterRecoveryConfigs in Microsoft.ServiceBus can be configured in Azure Resource Manager with the resource name Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • name required - string

    The Disaster Recovery configuration name

  • properties required
      • alternateName optional - string

        Primary/Secondary eventhub namespace name, which is part of GEO DR pairing

      • partnerNamespace optional - string

        ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing

  • type required - string

Frequently asked questions

What is Azure Messaging Namespace Disaster Recovery Config?

Azure Messaging Namespace Disaster Recovery Config is a resource for Messaging of Microsoft Azure. Settings can be wrote in Terraform.