Gallery › Data Factory › Azure built-in policies
Azure data factories should be encrypted with a customer-managed key
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.1
Use customer-managed keys to manage the encryption at rest of your Azure Data Factory. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/adf-cmk.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Azure data factories should be encrypted with a customer-managed key",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Use customer-managed keys to manage the encryption at rest of your Azure Data Factory. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/adf-cmk.",
"metadata": {
"version": "1.0.1",
"category": "Data Factory"
},
"version": "1.0.1",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.DataFactory/factories"
},
{
"field": "Microsoft.DataFactory/factories/encryption.vaultBaseUrl",
"exists": false
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/4ec52d6d-beb7-40c4-9a9e-fe753254690e",
"name": "4ec52d6d-beb7-40c4-9a9e-fe753254690e"
}# Converted from CustomerManagedKey_Audit.json by ConvertTo-Bylaw.
Policy '4ec52d6d-beb7-40c4-9a9e-fe753254690e' {
Properties @{
DisplayName = 'Azure data factories should be encrypted with a customer-managed key'
Description = 'Use customer-managed keys to manage the encryption at rest of your Azure Data Factory. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/adf-cmk.'
Version = '1.0.1'
Category = 'Data Factory'
PolicyVersion = '1.0.1'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.DataFactory/factories' {
Require 'encryption.vaultBaseUrl exists' {
Field encryption.vaultBaseUrl | Must -Exist
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Data Factory/CustomerManagedKey_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw