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_eventhub_namespace_disaster_recovery_config (Terraform)

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

Example Usage from GitHub

main.tf#L7
resource "azurerm_eventhub_namespace_disaster_recovery_config" "this" {
  alternate_name       = var.alternate_name
  name                 = var.name
  namespace_name       = var.namespace_name
  partner_namespace_id = var.partner_namespace_id
  resource_group_name  = var.resource_group_name

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

Explanation in Terraform Registry

Manages an Disaster Recovery Config for an Event Hub Namespace.

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

The namespaces/disasterRecoveryConfigs in Microsoft.EventHub can be configured in Azure Resource Manager with the resource name Microsoft.EventHub/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

        Alternate name specified when alias and namespace names are same.

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

Where can I find the example code for the Azure Messaging Namespace Disaster Recovery Config?

For Terraform, the kevinhead/azurerm source code example is useful. See the Terraform Example section for further details.