Ensure Virtual Machines are utilizing managed disks

Error: Azure Virtual Machines are not utilizing managed disks

Bridgecrew Policy ID: BC_AZR_GENERAL_66
Checkov Check ID: CKV_AZURE_92
Severity: LOW

Azure Virtual Machines are not utilizing managed disks

Description

TBA

Fix - Buildtime

Terraform

  • Resource: azurerm_windows_virtual_machine
  • Argument: storage_os_disk
resource "azurerm_windows_virtual_machine" "example" {
  ...
  + storage_os_disk {
    name              = "myosdisk1"
    caching           = "ReadWrite"
    create_option     = "FromImage"
    managed_disk_type = "Standard_LRS"
  }
  ...
}

Did this page help you?