How to extend disk space to a linux VM to avoid "no space left on device" error while docker running an image

Manuel Reyes Gomez 146 Reputation points
2021-02-25T21:37:48.227+00:00

I followed the answers for a very similar question but all links on the answers are broken

My understanding is that attaching another disk would not help and that I need to resize the OS disk, but all the references I found to do so are not current

I even tried

PS C:\Users\mreyesgomez> az vm deallocate --resource-group NGC-AML-Quick-Launch --name ABC-Tester
PS C:\Users\mreyesgomez> az vm update --resource-group NGC-AML-Quick-Launch --name ABC-Tester --set storageProfile.osDisk.diskSizeGB=100
BadRequestError: (ResizeDiskError) Managed disk resize via Virtual Machine 'ABC-Tester' is not allowed. Please resize disk resource at /subscriptions/ab221ca4-f098-422d-ab2f-5073b3851e68/resourceGroups/NGC-AML-QUICK-LAUNCH/providers/Microsoft.Compute/disks/ABC-Tester_OsDisk_1_1b06eb4fe5bb48c9bd45bb54817c4d8f.

And as you can see it did not work

I looked for the above path (/subscriptions/ab221ca4-f098-422d-ab2f-5073b3851e68/resourceGroups/NGC-AML-QUICK-LAUNCH/providers/Microsoft.Compute/disks/ABC-Tester_OsDisk_1_1b06eb4fe5bb48c9bd45bb54817c4d8f) on the portal but the Resource Group does not have any providers tab

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manuel Reyes Gomez 146 Reputation points
    2021-02-25T22:02:26.307+00:00

    Nevermind, I found the resize option for the disk on the portal

    1 person found this answer helpful.

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.