How to deattach an OS disk?

ayman aqil 1 Reputation point
2022-07-22T21:21:41.023+00:00

Does anyone know how can I deattack an OS disk, so I can export it.

My subscription is cancelled, and I'm trying to get my VM files.
When I go to disk export, I get the error "Exporting disks is allowed only when the VM is deallocated or the disk is unattached, or when the disk is not in ReadyToUpload or ActiveUpload state."

So I am wondering how can I deattach an OS disk.

223886-image.png

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,171 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,226 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.
578 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 97,896 Reputation points MVP
    2022-07-22T21:39:11.42+00:00

    Hi @ayman aqil ,

    an OS Disk can't be detached from a VM.

    But you could export the OS Disk:

    • Stop/Deallocate the VM
    • Navigate to Disks and click on the OS Disk
    • Click on Disk Export and Generate URL - Depending on the size of the disk and the internet bandwidth you should extend the URL expiration time

    223921-image.png

    • Use the generated URL to start the download

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    1 person found this answer helpful.
    0 comments No comments