Windows Azure - Stuck on Running (Provisioning) when creating VM from custom created image in gallery Windows Azure - Stuck on Running (Provisioning) when creating VM from custom created image in gallery azure azure

Windows Azure - Stuck on Running (Provisioning) when creating VM from custom created image in gallery


There was an issue for a while where running sysprep /shutdown on Azure causes this behaviour - could it be down to how/when the images were created? -

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/fafb9ee6-1e57-46ba-8440-27467ad986cf/image-capture-issue-vm-unexpectedly-started-after-guestinitiated-shutdown?forum=WAVirtualMachinesforWindows

....If you capture a VM that has been started after sysprep has been run, the guest OS is not in the correct state. The capture operation will succeed, but VMs created from the image will fail to provision successfully, and will ultimately show status Provisioning timed out.

The issue had since been resolved, but it may explain the difference if one image was created at that time once the other hadn't.

To answer your second question - you can't create a new VM AND set it to join a domain at at the same time from the portal but you CAN do that in powershell - Add-AzureProvisioningConfig which you would use with New-AzureVMConfig to create a configuration you would feed into New-AzureVM has switches to provide domain information - name, user and password.


I just learned some hard lesson for capturing image and creating VM from image at Azure. So basically, there are 2 things: