Skip to main content

workspace_managed_sql_server_encryption_protector

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

Overview

Nameworkspace_managed_sql_server_encryption_protector
TypeResource
Idazure.synapse.workspace_managed_sql_server_encryption_protector

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
kindstringKind of encryption protector. This is metadata used for the Azure portal experience.
locationstringResource location.
serverKeyNamestringThe name of the server key.
serverKeyTypestringThe encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Known values are: "ServiceManaged" and "AzureKeyVault".
subregionstringSubregion of the encryption protector.
thumbprintstringThumbprint of the server key.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uristringThe URI of the server key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, encryption_protector_name, subscription_idGet workspace server's encryption protector. Get workspace managed sql server's encryption protector.
listselectresource_group_name, workspace_name, subscription_idGet list of encryption protectors for the server. Get list of encryption protectors for workspace managed sql server.
create_or_updateinsertresource_group_name, workspace_name, encryption_protector_name, subscription_idUpdates workspace server's encryption protector. Updates workspace managed sql server's encryption protector.
create_or_updatereplaceresource_group_name, workspace_name, encryption_protector_name, subscription_idUpdates workspace server's encryption protector. Updates workspace managed sql server's encryption protector.
revalidateexecresource_group_name, workspace_name, encryption_protector_name, subscription_idRevalidates server's existing encryption protector. Revalidates workspace managed sql server's 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
encryption_protector_namestringThe name of the encryption protector. "current" Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Get workspace server's encryption protector. Get workspace managed sql server's encryption protector.

SELECT
id,
name,
kind,
location,
serverKeyName,
serverKeyType,
subregion,
thumbprint,
type,
uri
FROM azure.synapse.workspace_managed_sql_server_encryption_protector
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND encryption_protector_name = '{{ encryption_protector_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Updates workspace server's encryption protector. Updates workspace managed sql server's encryption protector.

INSERT INTO azure.synapse.workspace_managed_sql_server_encryption_protector (
properties,
resource_group_name,
workspace_name,
encryption_protector_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ encryption_protector_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
kind,
location,
properties,
type
;

REPLACE examples

Updates workspace server's encryption protector. Updates workspace managed sql server's encryption protector.

REPLACE azure.synapse.workspace_managed_sql_server_encryption_protector
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND encryption_protector_name = '{{ encryption_protector_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
kind,
location,
properties,
type;

Lifecycle Methods

Revalidates server's existing encryption protector. Revalidates workspace managed sql server's existing encryption protector.

EXEC azure.synapse.workspace_managed_sql_server_encryption_protector.revalidate 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@encryption_protector_name='{{ encryption_protector_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;