Quick post of something I ran into this week. When creating new VMs it makes sense to create disks that have a certain size in GB. But sometimes when migrating workload from one platform to another you might see some funky hard disk sizes like this.

Fixing this for a large number of VMs can be a tedious task. So let’s automate this using a Powershell function.

This function even supports the use of a WhatIf parameter so you can safely test it before actually changing the disk size.

Share this if you found this interesting.

Leave a Reply

Your email address will not be published. Required fields are marked *