A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
Hello Joykirat Singh,
Greetings! Thanks for raising this question in the Q&A forum.
The core issue here is that once a subscription expires or is disabled, Azure marks it as read only. In this state you cannot perform any write actions on the subscription, including stopping, deallocating, or exporting disks, even if the VM shows a Stopped status. Only a VM that has been properly deallocated (Stopped (deallocated)) allows its disk to be exported, and a disabled subscription blocks that deallocation action entirely. This is why you are seeing the error about the disk not being unattached or the VM not being deallocated, the underlying cause is really the subscription state rather than the disk or VM configuration.
Here is how to resolve this:
Check the exact subscription status Go to the Azure Portal, search for Subscriptions, and open MURGe-Lab-v3_Joykirat_Singh. Confirm whether it shows as Disabled or Expired. If you attempt a write action you will typically see an error similar to:
The subscription 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is disabled and therefore marked as read only. You cannot perform any write actions on this subscription until it is re-enabled. (Code: ReadOnlyDisabledSubscription)
Reactivate the subscription if it is a Pay As You Go or standard offer If this is a normal subscription that lapsed due to non payment, go to Cost Management + Billing and check if a Reactivate option is available. Once reactivated, there is usually a delay of about 10 to 30 minutes before write actions such as Stop, Deallocate, and Disk export become available again.
If this is a sponsored, lab, or grant based subscription Since the name MURGe-Lab-v3 suggests this is a lab or research sponsorship type subscription rather than a Pay As You Go account, self service reactivation is often not available once the sponsorship period ends. In that case:
- Check with the subscription owner or lab administrator who provisioned the sponsorship, as only they may be able to renew or extend it.
- If no extension is possible, you will need to contact Azure Support directly, since expired sponsorship subscriptions usually go through a limited data retention window before resources are permanently deleted.
az vm deallocate --resource-group <YourResourceGroup> --name joy-4-a100_644e2da0
az vm deallocate --resource-group <YourResourceGroup> --name joy-a100-pland-2 ```
Once each VM shows **Stopped (deallocated)**, you can generate a SAS URL for the disk and export it using Storage Explorer or AzCopy, as described in [Download a Windows or Linux VHD from Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/disks-download-vhd).
Please be aware that if the subscription has passed its final retention period, resources including disks may already be scheduled for deletion, so it is worth raising the support request as soon as possible rather than waiting.
If this answer helps you kindly accept the answer which will help others who have similar questions.
Best Regards,
Jerald Felix.