Skip to main content

data_masking_policies

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

Overview

Namedata_masking_policies
TypeResource
Idazure.synapse.data_masking_policies

Fields

NameDatatypeDescription
application_principalstextfield from the properties object
dataMaskingPolicyNametextfield from the properties object
data_masking_statetextfield from the properties object
exempt_principalstextfield from the properties object
kindtextThe kind of data masking policy. Metadata, used for Azure portal.
locationtextThe location of the data masking policy.
managed_bytextfield from the properties object
masking_leveltextfield from the properties object
resourceGroupNametextfield from the properties object
sqlPoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataMaskingPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameGets a Sql pool data masking policy.
create_or_updateINSERTdataMaskingPolicyName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameCreates or updates a Sql pool data masking policy

SELECT examples

Gets a Sql pool data masking policy.

SELECT
application_principals,
dataMaskingPolicyName,
data_masking_state,
exempt_principals,
kind,
location,
managed_by,
masking_level,
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName
FROM azure.synapse.vw_data_masking_policies
WHERE dataMaskingPolicyName = '{{ dataMaskingPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.data_masking_policies (
dataMaskingPolicyName,
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ dataMaskingPolicyName }}',
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;