Need to Decrese VM OS disk from 127 GB to 32 GB.

B Ramesh Kumar 6 Reputation points
2020-04-24T09:49:58.34+00:00

Need to Decrese VM OS disk from 127 GB to 32 GB. Once change the OS disk size to 32 Gb , I need to take that vm as Image and use that customer image for my VDI backend .

Please provide ur suggestions.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Leon Laude 86,081 Reputation points
    2020-04-24T09:52:54.87+00:00

    Hi,

    Something here might help:

    Shrink an Azure VMs OS Managed Disk using PowerShell
    https://jrudlin.github.io/2019-08-27-shrink-azure-vm-osdisk

    How to shrink a managed disk
    https://devblogs.microsoft.com/premier-developer/how-to-shrink-a-managed-disk

    Best regards,
    Leon

    1 person found this answer helpful.
    0 comments No comments

  2. TechGuy_MS1 61 Reputation points
    2021-02-21T14:08:49.427+00:00

    Is the script safe and secure to run? Any theft or security concerns? Thanks.


Your answer

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