Description
Azure managed disks always use server-side encryption (SSE). encryptionSettingsCollection.enabled concerns guest-based Azure Disk Encryption (ADE) and does not report the disk’s SSE state.
Potential impact
Platform-managed keys may fall short of your organization’s key ownership requirements. For temporary disk and cache protection, check support for encryption at host.
Remediation
For customer-managed keys, grant the Disk Encryption Set (DES) access to the key and supply the set’s resource ID in diskEncryptionSetId. Verify the disk’s encryption type and DES after deployment. Migrate deployments using ADE to a supported method before September 15, 2028. Guest encryption requires its own procedure.
Examples
Both Bicep excerpts encrypt the same 512 GiB disk. The second uses EncryptionAtRestWithCustomerKey and the compatible DES you supply.
Platform-managed key
param projectName string
var vmName = '${projectName}-vm'
resource vmName_disk1 'Microsoft.Compute/disks@2024-03-02' = {
name: '${vmName}-disk1'
location: resourceGroup().location
sku: {
name: 'Standard_LRS'
}
properties: {
creationData: {
createOption: 'Empty'
}
diskSizeGB: 512
encryption: {
type: 'EncryptionAtRestWithPlatformKey'
}
}
}
Customer-managed key
param projectName string
param diskEncryptionSetId string
var vmName = '${projectName}-vm'
resource vmName_disk1 'Microsoft.Compute/disks@2024-03-02' = {
name: '${vmName}-disk1'
location: resourceGroup().location
sku: {
name: 'Standard_LRS'
}
properties: {
creationData: {
createOption: 'Empty'
}
diskSizeGB: 512
encryption: {
type: 'EncryptionAtRestWithCustomerKey'
diskEncryptionSetId: diskEncryptionSetId
}
}
}