Gallery › Synapse › Azure built-in policies
Azure Synapse Analytics dedicated SQL pools should enable encryption
Converted Policy AuditIfNotExists Disabled Mode Indexed Version 1.0.0
Enable transparent data encryption for Azure Synapse Analytics dedicated SQL pools to protect data-at-rest and meet compliance requirements. Please note that enabling transparent data encryption for the pool may impact query performance. More details can refer to https://go.microsoft.com/fwlink/?linkid=2147714
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONACAT_SqlPoolEncryption_AINE.json · 48 lines
{
"properties": {
"displayName": "Azure Synapse Analytics dedicated SQL pools should enable encryption",
"policyType": "BuiltIn",
"description": "Enable transparent data encryption for Azure Synapse Analytics dedicated SQL pools to protect data-at-rest and meet compliance requirements. Please note that enabling transparent data encryption for the pool may impact query performance. More details can refer to https://go.microsoft.com/fwlink/?linkid=2147714",
"mode": "Indexed",
"metadata": {
"version": "1.0.0",
"category": "Synapse"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
}
},
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Synapse/workspaces/sqlPools"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/",
"existenceCondition": {
"field": "Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/status",
"equals": "Enabled"
}
}
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/cfaf0007-99c7-4b01-b36b-4048872ac978",
"name": "cfaf0007-99c7-4b01-b36b-4048872ac978"
}Bylawcfaf0007-99c7-4b01-b36b-4048872ac978.bylaw.ps1 · 27 lines
# Converted from ACAT_SqlPoolEncryption_AINE.json by ConvertTo-Bylaw.
Policy 'cfaf0007-99c7-4b01-b36b-4048872ac978' {
Properties @{
DisplayName = 'Azure Synapse Analytics dedicated SQL pools should enable encryption'
Description = 'Enable transparent data encryption for Azure Synapse Analytics dedicated SQL pools to protect data-at-rest and meet compliance requirements. Please note that enabling transparent data encryption for the pool may impact query performance. More details can refer to https://go.microsoft.com/fwlink/?linkid=2147714'
Version = '1.0.0'
Category = 'Synapse'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('AuditIfNotExists', 'Disabled')
Default = 'AuditIfNotExists'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Synapse/workspaces/sqlPools'
AuditIfNotExists 'Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/' -Effect (Param Effect) {
Require 'status is Enabled' {
Field 'Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/status' | Must -Be 'Enabled'
}
}
}Source: built-in-policies/policyDefinitions/Synapse/ACAT_SqlPoolEncryption_AINE.json in Azure/azure-policy, under the MIT licence.
Bylaw