Skip to main content

distributed_availability_groups_by_instances

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

Overview

Namedistributed_availability_groups_by_instances
TypeResource
Idazure.sql.distributed_availability_groups_by_instances

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the list of distributed availability groups.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, managedInstanceName, subscriptionIdGets a list of a distributed availability groups in instance.

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
managedInstanceNamestringThe name of the managed instance.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets a list of a distributed availability groups in instance.

SELECT
properties
FROM azure.sql.distributed_availability_groups_by_instances
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;