Microsoft.EventHub namespaces/disasterRecoveryConfigs 2021-01-01-preview

Template format

To create a Microsoft.EventHub/namespaces/disasterRecoveryConfigs resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs",
  "apiVersion": "2021-01-01-preview",
  "properties": {
    "partnerNamespace": "string",
    "alternateName": "string"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.EventHub/namespaces/disasterRecoveryConfigs object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The Disaster Recovery configuration name
type enum Yes For JSON -disasterRecoveryConfigs
-or-
Microsoft.EventHub/namespaces/disasterRecoveryConfigs

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2021-01-01-preview
properties object Yes Properties required to the Create Or Update Alias(Disaster Recovery configurations) - ArmDisasterRecoveryProperties object

ArmDisasterRecoveryProperties object

Name Type Required Value
partnerNamespace string No ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
alternateName string No Alternate name specified when alias and namespace names are same.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a Eventhub namespace and geo-recovery configuration

Deploy to Azure
This template enables you to deploy a Service Bus namespace with a Basic/Standard SKU.