Disable the Azure Disk Encryption

Umer Malik 0 Reputation points
2024-07-10T04:39:08.3533333+00:00

So i had a Virtual Machine which has an application running on it. I wanted to Applied Disk Encryption so Applied it on my Disk Addition Settings, Encrypting my OS and Data Disk. After that my Server got down. I tried to disable it but it didn't responded so I checked the Status for Encryption and it said VM Reboot required which i did. After that Now i want to disable my disk encryption but on the powershell after running this cmdlet:
Disable AzureDiskEncryption on the VM

This cmdlet disables encryption on the VM which may reboot the machine. Please save your work on the VM before confirming. Do you want to continue?

[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
Nothing shows up, it's been more than a hour. What are some tips to recover my VM back?

Azure Disk Encryption
Azure Disk Encryption
An Azure service for virtual machines (VMs) that helps address organizational security and compliance requirements by encrypting the VM boot and data disks with keys and policies that are controlled in Azure Key Vault.
174 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
642 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Umer Malik 0 Reputation points
    2024-07-10T04:53:43.43+00:00

    Update!
    Disable-AzVMDiskEncryption: Long running operation failed with status 'Failed'. Additional Info:'VM 'myVM' has not reported status for VM agent or extensions. Verify that the OS is up and healthy, the VM has a running VM agent, and that it can establish outbound connections to Azure storage. Please refer to https://aka.ms/vmextensionlinuxtroubleshoot for additional VM agent troubleshooting information.'

    ErrorCode: VMAgentStatusCommunicationError

    ErrorMessage: VM 'MyVM' has not reported status for VM agent or extensions. Verify that the OS is up and healthy, the VM has a running VM agent, and that it can establish outbound connections to Azure storage. Please refer to https://aka.ms/vmextensionlinuxtroubleshoot for additional VM agent troubleshooting information.

    ErrorTarget:

    StartTime: 7/10/2024 4:18:46 AM

    EndTime: 7/10/2024 4:43:52 AM

    OperationID: 11739755-d957-4f4b-83cc-4a0a27ba3f47

    Status: Failed
    It gave this

    0 comments No comments

  2. Nehruji R 8,066 Reputation points Microsoft Vendor
    2024-07-11T06:07:26.2066667+00:00

    Hello Umer Malik,

    Greetings! Welcome to Microsoft Q&A Platform.

    I understand that the VM ‘MyVM’ is having trouble reporting the status of its VM agent or extensions and issue with the VM guest agent itself as this error indicates "VMAgentStatusCommunicationError".

    You will not be able to uninstall this extension in case the agent itself is not running as uninstall workflow communicates with the guest agent. This extension is used for resetting the password for VM. Here are a few steps you can take to troubleshoot this issue:

    Quick troubleshooting steps: Note: After each troubleshooting step, try reconnecting to the VM.

    • Reset the SSH configuration.
    • Reset the credentials for the user.
    • Verify the network security group rules permit SSH traffic.
    • Ensure that a Network Security Group rule exists to permit SSH traffic (by default, TCP port 22).
    • You cannot use port redirection / mapping without using an Azure load balancer.
    • Check the VM resource health.
    • Ensure that the VM reports as being healthy.
    • If you have boot diagnostics enabled, verify the VM is not reporting boot errors in the logs.
    • Restart the VM.
    • Redeploy the VM.

    Refer following troubleshooting docs: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/disk-encryption-troubleshooting, https://learn.microsoft.com/en-us/azure/virtual-machines/windows/disk-encryption-windows, https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/troubleshoot

    Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.