Gallery › Bot Service › Azure built-in policies
Bot Service should be encrypted with a customer-managed key
Converted Policy Audit Deny Disabled Mode Indexed Version 1.1.0
Azure Bot Service automatically encrypts your resource to protect your data and meet organizational security and compliance commitments. By default, Microsoft-managed encryption keys are used. For greater flexibility in managing keys or controlling access to your subscription, select customer-managed keys, also known as bring your own key (BYOK). Learn more about Azure Bot Service encryption: https://docs.microsoft.com/azure/bot-service/bot-service-encryption.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Bot Service should be encrypted with a customer-managed key",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Azure Bot Service automatically encrypts your resource to protect your data and meet organizational security and compliance commitments. By default, Microsoft-managed encryption keys are used. For greater flexibility in managing keys or controlling access to your subscription, select customer-managed keys, also known as bring your own key (BYOK). Learn more about Azure Bot Service encryption: https://docs.microsoft.com/azure/bot-service/bot-service-encryption.",
"metadata": {
"version": "1.1.0",
"category": "Bot Service"
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The desired effect of the policy."
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.BotService/botServices"
},
{
"field": "Microsoft.BotService/botServices/isCmekEnabled",
"notEquals": "true"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/51522a96-0869-4791-82f3-981000c2c67f",
"name": "51522a96-0869-4791-82f3-981000c2c67f"
}# Converted from CMKEnabled_Audit.json by ConvertTo-Bylaw.
Policy '51522a96-0869-4791-82f3-981000c2c67f' {
Properties @{
DisplayName = 'Bot Service should be encrypted with a customer-managed key'
Description = 'Azure Bot Service automatically encrypts your resource to protect your data and meet organizational security and compliance commitments. By default, Microsoft-managed encryption keys are used. For greater flexibility in managing keys or controlling access to your subscription, select customer-managed keys, also known as bring your own key (BYOK). Learn more about Azure Bot Service encryption: https://docs.microsoft.com/azure/bot-service/bot-service-encryption.'
Version = '1.1.0'
Category = 'Bot Service'
PolicyVersion = '1.1.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('audit', 'Audit', 'deny', 'Deny', 'disabled', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'The desired effect of the policy.'
}
Resource 'Microsoft.BotService/botServices' {
Require 'isCmekEnabled is true' {
Field isCmekEnabled | Must -Be 'true'
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Bot Service/CMKEnabled_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw