Skip to main content

failover_groups

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

Overview

Namefailover_groups
TypeResource
Idazure.azure_arc_data.failover_groups

Fields

NameDatatypeDescription
failoverGroupNametextfield from the properties object
partner_managed_instance_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
spectextfield from the properties object
sqlManagedInstanceNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfailoverGroupName, resourceGroupName, sqlManagedInstanceName, subscriptionIdRetrieves a failover group resource
listSELECTresourceGroupName, sqlManagedInstanceName, subscriptionId
createINSERTfailoverGroupName, resourceGroupName, sqlManagedInstanceName, subscriptionId, data__propertiesCreates or replaces a failover group resource.
deleteDELETEfailoverGroupName, resourceGroupName, sqlManagedInstanceName, subscriptionIdDeletes a failover group resource

SELECT examples

SELECT
failoverGroupName,
partner_managed_instance_id,
provisioning_state,
resourceGroupName,
spec,
sqlManagedInstanceName,
status,
subscriptionId
FROM azure.azure_arc_data.vw_failover_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlManagedInstanceName = '{{ sqlManagedInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new failover_groups resource.

/*+ create */
INSERT INTO azure.azure_arc_data.failover_groups (
failoverGroupName,
resourceGroupName,
sqlManagedInstanceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ failoverGroupName }}',
'{{ resourceGroupName }}',
'{{ sqlManagedInstanceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified failover_groups resource.

/*+ delete */
DELETE FROM azure.azure_arc_data.failover_groups
WHERE failoverGroupName = '{{ failoverGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sqlManagedInstanceName = '{{ sqlManagedInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';