Skip to content

Files

Latest commit

 

History

History
31 lines (22 loc) · 550 Bytes

AZU003.md

File metadata and controls

31 lines (22 loc) · 550 Bytes

Pattern: Unencrypted managed disk

Issue: -

Description

Manage disks should be encrypted at rest. When specifying the encryption_settings block, the enabled attribute should be set to true.

Resolution: Enable encryption on managed disks.

Examples

Example of incorrect code:

resource "azurerm_managed_disk" "bad_example" {
	encryption_settings {
		enabled = false
	}
}

Example of correct code:

resource "azurerm_managed_disk" "good_example" {
	encryption_settings {
		enabled = true
	}
}