Gallery › Machine Learning › Azure built-in policies
Azure Machine Learning workspaces should be encrypted with the use of a customer-managed key
Converted Policy AuditIfNotExists Disabled Mode Indexed Version 1.0.0
Manage encryption at rest of Azure Machine Learning workspace data with customer-managed keys. 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/azureml-workspaces-cmk.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Azure Machine Learning workspaces should be encrypted with the use of a customer-managed key",
"description": "Manage encryption at rest of Azure Machine Learning workspace data with customer-managed keys. 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/azureml-workspaces-cmk.",
"policyType": "BuiltIn",
"mode": "Indexed",
"metadata": {
"category": "Machine Learning",
"version": "1.0.0"
},
"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": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MachineLearningServices/workspaces"
},
{
"not": {
"field": "kind",
"equals": "project"
}
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.MachineLearningServices/workspaces",
"name": "[field('name')]",
"existenceCondition": {
"allOf": [
{
"field": "Microsoft.MachineLearningServices/workspaces/encryption.status",
"equals": "Enabled"
}
]
}
}
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/7f40cee6-e933-4d0f-a782-b96615e0f4a6",
"name": "7f40cee6-e933-4d0f-a782-b96615e0f4a6"
}# Converted from Workspace_CMKEnabled_Audit_V2.json by ConvertTo-Bylaw.
Policy '7f40cee6-e933-4d0f-a782-b96615e0f4a6' {
Properties @{
DisplayName = 'Azure Machine Learning workspaces should be encrypted with the use of a customer-managed key'
Description = 'Manage encryption at rest of Azure Machine Learning workspace data with customer-managed keys. 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/azureml-workspaces-cmk.'
Category = 'Machine Learning'
Version = '1.0.0'
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.MachineLearningServices/workspaces' {
Require 'kind is project' {
Field kind | Must -Be 'project'
}
}
AuditIfNotExists 'Microsoft.MachineLearningServices/workspaces' -Name (Arm '[field(''name'')]') -Effect (Param Effect) {
Require 'encryption.status is Enabled' {
Field encryption.status | Must -Be 'Enabled'
}
}
}Source: built-in-policies/policyDefinitions/Machine Learning/Workspace_CMKEnabled_Audit_V2.json in Azure/azure-policy, under the MIT licence.
Bylaw