Skip to main content

managed_instance_encryption_protectors

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

Overview

Namemanaged_instance_encryption_protectors
TypeResource
Idazure.sql.managed_instance_encryption_protectors

Fields

NameDatatypeDescription
auto_rotation_enabledtextfield from the properties object
encryptionProtectorNametextfield from the properties object
kindtextKind of encryption protector. This is metadata used for the Azure portal experience.
managedInstanceNametextfield from the properties object
resourceGroupNametextfield from the properties object
server_key_nametextfield from the properties object
server_key_typetextfield from the properties object
subscriptionIdtextfield from the properties object
thumbprinttextfield from the properties object
uritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTencryptionProtectorName, managedInstanceName, resourceGroupName, subscriptionIdGets a managed instance encryption protector.
create_or_updateINSERTencryptionProtectorName, managedInstanceName, resourceGroupName, subscriptionIdUpdates an existing encryption protector.
revalidateEXECencryptionProtectorName, managedInstanceName, resourceGroupName, subscriptionIdRevalidates an existing encryption protector.

SELECT examples

Gets a managed instance encryption protector.

SELECT
auto_rotation_enabled,
encryptionProtectorName,
kind,
managedInstanceName,
resourceGroupName,
server_key_name,
server_key_type,
subscriptionId,
thumbprint,
uri
FROM azure.sql.vw_managed_instance_encryption_protectors
WHERE encryptionProtectorName = '{{ encryptionProtectorName }}'
AND managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.managed_instance_encryption_protectors (
encryptionProtectorName,
managedInstanceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ encryptionProtectorName }}',
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;