CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsThis policy setting recommends enabling disk encryption in all virtual machines to enhance data protection at rest.
Set policy_definition_id
to /providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d
, and set enforce
to true
or remove the attribute.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
"type": "Microsoft.Authorization/policyAssignments",
"apiVersion": "2022-06-01",
"name": "allowed",
"location": "[resourceGroup().location]",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"description": "By default, a virtual machine's OS and data disks are encrypted-at-rest using platform-managed keys. Temp disks, data caches and data flowing between compute and storage aren't encrypted",
"displayName": "Virtual machines should encrypt temp disks, caches, and data flows between Compute and Storage resources",
"enforcementMode": "Default",
"metadata": {},
"parameters": {},
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d"
}
]
}
Set policy_definition_id
to /providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d
, and set enforce
to true
or remove the attribute.
resource "azurerm_subscription_policy_assignment" "allowed" {
name = "monitor-disk-encryption"
subscription_id = data.azurerm_subscription.current.id
policy_definition_id = "/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d"
description = "Virtual machines should encrypt temp disks, caches, and data flows between Compute and Storage resources"
display_name = "Monitor disk encryption"
enforce = true
}