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

The following fields are returned by SELECT queries:

Successfully retrieved the specified managed instance encryption protector.

NameDatatypeDescription
kindstringKind of encryption protector. This is metadata used for the Azure portal experience.
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, managedInstanceName, encryptionProtectorName, subscriptionIdGets a managed instance encryption protector.
create_or_updateinsertresourceGroupName, managedInstanceName, encryptionProtectorName, subscriptionIdUpdates an existing encryption protector.
revalidateexecresourceGroupName, managedInstanceName, encryptionProtectorName, subscriptionIdRevalidates an existing encryption protector.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
encryptionProtectorNamestringThe name of the encryption protector to be updated.
managedInstanceNamestringThe name of the managed instance.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets a managed instance encryption protector.

SELECT
kind,
properties
FROM azure.sql.managed_instance_encryption_protectors
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND encryptionProtectorName = '{{ encryptionProtectorName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Updates an existing encryption protector.

INSERT INTO azure.sql.managed_instance_encryption_protectors (
data__properties,
resourceGroupName,
managedInstanceName,
encryptionProtectorName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ managedInstanceName }}',
'{{ encryptionProtectorName }}',
'{{ subscriptionId }}'
RETURNING
kind,
properties
;

Lifecycle Methods

Revalidates an existing encryption protector.

EXEC azure.sql.managed_instance_encryption_protectors.revalidate 
@resourceGroupName='{{ resourceGroupName }}' --required,
@managedInstanceName='{{ managedInstanceName }}' --required,
@encryptionProtectorName='{{ encryptionProtectorName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;