Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure.storage_sync.services

Fields

NameDatatypeDescription
identitytextManaged service identity (system assigned and/or user assigned identities)
incoming_traffic_policytextfield from the properties object
last_operation_nametextfield from the properties object
last_workflow_idtextfield from the properties object
locationtextThe geo-location where the resource lives
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storageSyncServiceNametextfield from the properties object
storage_sync_service_statustextfield from the properties object
storage_sync_service_uidtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
use_identitytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, storageSyncServiceName, subscriptionIdGet a given StorageSyncService.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a StorageSyncService list by Resource group name.
list_by_subscriptionSELECTsubscriptionIdGet a StorageSyncService list by subscription.
createINSERTresourceGroupName, storageSyncServiceName, subscriptionId, data__locationCreate a new StorageSyncService.
deleteDELETEresourceGroupName, storageSyncServiceName, subscriptionIdDelete a given StorageSyncService.
updateUPDATEresourceGroupName, storageSyncServiceName, subscriptionIdPatch a given StorageSyncService.
check_name_availabilityEXEClocationName, subscriptionId, data__name, data__typeCheck the give namespace name availability.

SELECT examples

Get a StorageSyncService list by subscription.

SELECT
identity,
incoming_traffic_policy,
last_operation_name,
last_workflow_id,
location,
private_endpoint_connections,
provisioning_state,
resourceGroupName,
storageSyncServiceName,
storage_sync_service_status,
storage_sync_service_uid,
subscriptionId,
tags,
use_identity
FROM azure.storage_sync.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_sync.services (
resourceGroupName,
storageSyncServiceName,
subscriptionId,
data__location,
identity,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ storageSyncServiceName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a services resource.

/*+ update */
UPDATE azure.storage_sync.services
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified services resource.

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