How to disable Azure Vm Disk Encryption
In this quick post we will look at how you can quickly disable disk encryption on an Azure virtual machine. In cases where you want to move a virtual machine to another subscription, and you have disk encryption enabled you find that you are unable to move this resource until you disable disk encryption.
To get started we need to connect to Azure Tenant using PowerShell.
1 |
Connect-AzAccount |
![Graphical user interface
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2021/06/graphical-user-interface-description-automaticall.png)
Once your connection to your Azure Tenant has been established, run the following the verify the encryption status of your virtual machine.
1 |
Get-AzVMDiskEncryptionStatus -ResourceGroupName 'RSG-PRD-SAN-SQL-01' -VMName UNERDSQLPROD01 |
From the below image you can see the encryption status of the virtual machines disk.
![](http://www.thatlazyadmin.com/wp-content/uploads/2021/06/word-image-2.png)
To disabled encryption on the vm, we can run the following.
1 |
Disable-AzVMDiskEncryption -ResourceGroupName 'RSG-PRD-SAN-SQL-01' -VMName UNERDSQLPROD01 |
You will notice after running the cmdlets that you are prompted with a confirmation that the VM will be rebooted to complete the process.
![Graphical user interface, text, application
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2021/06/graphical-user-interface-text-application-descr.png)
Hope this helps the next person and saves some time.
Be First to Comment