Skip to main content

encryption_sets

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

Overview

Nameencryption_sets
TypeResource
Idazure.dev_center.encryption_sets

Fields

NameDatatypeDescription
devCenterNametextfield from the properties object
devbox_disks_encryption_enable_statustextfield from the properties object
encryptionSetNametextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
key_encryption_key_urltextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdevCenterName, encryptionSetName, resourceGroupName, subscriptionIdGets a devcenter encryption set.
listSELECTdevCenterName, resourceGroupName, subscriptionIdLists all encryption sets in the devcenter.
create_or_updateINSERTdevCenterName, encryptionSetName, resourceGroupName, subscriptionIdCreates or updates a devcenter encryption set resource
deleteDELETEdevCenterName, encryptionSetName, resourceGroupName, subscriptionIdDeletes a devcenter encryption set
updateUPDATEdevCenterName, encryptionSetName, resourceGroupName, subscriptionIdPartially updates a devcenter encryption set.

SELECT examples

Lists all encryption sets in the devcenter.

SELECT
devCenterName,
devbox_disks_encryption_enable_status,
encryptionSetName,
identity,
key_encryption_key_url,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.dev_center.vw_encryption_sets
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.encryption_sets (
devCenterName,
encryptionSetName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ devCenterName }}',
'{{ encryptionSetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a encryption_sets resource.

/*+ update */
UPDATE azure.dev_center.encryption_sets
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
devCenterName = '{{ devCenterName }}'
AND encryptionSetName = '{{ encryptionSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified encryption_sets resource.

/*+ delete */
DELETE FROM azure.dev_center.encryption_sets
WHERE devCenterName = '{{ devCenterName }}'
AND encryptionSetName = '{{ encryptionSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';