Skip to main content

sync_groups

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

Overview

Namesync_groups
TypeResource
Idazure.storage_sync.sync_groups

Fields

NameDatatypeDescription
resourceGroupNametextfield from the properties object
storageSyncServiceNametextfield from the properties object
subscriptionIdtextfield from the properties object
syncGroupNametextfield from the properties object
sync_group_statustextfield from the properties object
unique_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameGet a given SyncGroup.
list_by_storage_sync_serviceSELECTresourceGroupName, storageSyncServiceName, subscriptionIdGet a SyncGroup List.
createINSERTresourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameCreate a new SyncGroup.
deleteDELETEresourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameDelete a given SyncGroup.

SELECT examples

Get a SyncGroup List.

SELECT
resourceGroupName,
storageSyncServiceName,
subscriptionId,
syncGroupName,
sync_group_status,
unique_id
FROM azure.storage_sync.vw_sync_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_sync.sync_groups (
resourceGroupName,
storageSyncServiceName,
subscriptionId,
syncGroupName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ storageSyncServiceName }}',
'{{ subscriptionId }}',
'{{ syncGroupName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified sync_groups resource.

/*+ delete */
DELETE FROM azure.storage_sync.sync_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND syncGroupName = '{{ syncGroupName }}';