Changes happen and sometimes there is a requirement to change the name of a virtual machine, be it from an error or a change of naming convention internally. Natively within Azure there is currently no way to rename a virtual machine, its virtual network or the disks attached too it, forcing users to either give up on name changes or build out new virtual machines and migrate disks.
Whilst there are some scripts available already that run through the process these did not meet my specific needs, primarily of retaining the internal private IP address.
Continue reading