Skip to main content

disaster_recovery_configs_keys

Creates, updates, deletes, gets or lists a disaster_recovery_configs_keys resource.

Overview

Namedisaster_recovery_configs_keys
TypeResource
Idazure.service_bus.disaster_recovery_configs_keys

Fields

The following fields are returned by SELECT queries:

Connection strings successfully returned.

NameDatatypeDescription
aliasPrimaryConnectionStringstringPrimary connection string of the alias if GEO DR is enabled
aliasSecondaryConnectionStringstringSecondary connection string of the alias if GEO DR is enabled
keyNamestringA string that describes the authorization rule.
primaryConnectionStringstringPrimary connection string of the created namespace authorization rule.
primaryKeystringA base64-encoded 256-bit primary key for signing and validating the SAS token.
secondaryConnectionStringstringSecondary connection string of the created namespace authorization rule.
secondaryKeystringA base64-encoded 256-bit primary key for signing and validating the SAS token.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, namespaceName, alias, authorizationRuleName, subscriptionIdGets the primary and secondary connection strings for the namespace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aliasstringThe Disaster Recovery configuration name
authorizationRuleNamestringThe authorization rule name.
namespaceNamestringThe namespace name
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the primary and secondary connection strings for the namespace.

SELECT
aliasPrimaryConnectionString,
aliasSecondaryConnectionString,
keyName,
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.service_bus.disaster_recovery_configs_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND namespaceName = '{{ namespaceName }}' -- required
AND alias = '{{ alias }}' -- required
AND authorizationRuleName = '{{ authorizationRuleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;