π Azure Virtual Machine is not utilizing Managed Disks π’
- Contextual name: π Virtual Machine is not utilizing Managed Disks π’
- ID:
/ce/ca/azure/virtual-machine/virtual-machine-managed-disks
- Located in: π Azure Virtual Machines
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
PERFORMANCE
COST
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-588af79c
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-588af79c | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Migrate blob-based VHDs to Managed Disks on Virtual Machines to exploit the default features of this configuration. The features include:
- Default Disk Encryption.
- Resilience, as Microsoft will managed the disk storage and move around if underlying hardware goes faulty.
- Reduction of costs over storage accounts.
Rationaleβ
Managed disks are by default encrypted on the underlying hardware, so no additional encryption is required for basic protection. It is available if additional encryption is required. Managed disks are by design more resilient that storage accounts.
For ARM-deployed Virtual Machines, Azure Adviser will at some point recommend moving VHDs to managed disks both from a security and cost management perspective.
Impactβ
There are additional costs for managed disks based off of disk space allocated. When converting to managed disks, VMs will be powered off and back on.
Auditβ
From Azure Portalβ
- Using the search feature, go to
Virtual Machines
.- Click the
Manage view
dropdown, then selectEdit columns
.... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Using the search feature, go to
Virtual Machines
.- Select the virtual machine you would like to convert.
- Select
Disks
in the menu for the VM.- At the top select
Migrate to managed disks
.- You may follow the prompts to convert the disk and finish by selecting
Migrate
to start the process.NOTE: VMs will be stopped and restarted after migration is complete.
From PowerShellβ
Stop-AzVM -ResourceGroupName $rgName -Name $vmName -Force ConvertTo-AzVMManagedDisk -ResourceGroupName $rgName -VMName $vmName Start-AzVM -ResourceGroupName $rgName -Name $vmName