Here's what I see in a typical "system" log of Azure role instances for their initialization sequence (this is for Windows Server 2008 R2, I haven't checked other versions):
- the VM is turned on,
- the VM computer name is changed
- the VM is rebooted
This is done because the computer name specified initially will not suit for a dynamically configured network, so a suitable name is generated and VM is assigned that name. Since changing a powered on machine name generally requires a reboot the VM is then rebooted.
The problem is this takes extra 35 seconds and this time is effectively wasted.
So there's a powered on Hyper-V VM and its "computer name" needs to be changed.
How can this be done without turning the VM on?