I tried to clone my VM using AzureVMImage. First, I stopped it (from inside the VM OS). Then, I issued the following command:
Save-AzureVMImage –ServiceName <servicename> –Name <name> –OSState specialized –ImageName <imagename> –ImageLabel "<description>"
I got the following response:
VERBOSE: 15:49:42 - Completed Operation: Get Deployment
VERBOSE: 15:49:44 - Begin Operation: Save-AzureVMImage
Save-AzureVMImage : InternalError : The server encountered an internal error. Please retry the request.
At line:1 char:1
+ Save-AzureVMImage -ServiceName smittsql1 -Name smittsql1 -OSState specialized -I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Save-AzureVMImage], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SaveAzureVMImageCommand
VERBOSE: 15:50:18 - Completed Operation: Save-AzureVMImage
The problem is now that I neither can start or shut down the VM! Whatever I do, I get
Windows Azure is currently performing an operation with x-ms-requestid b9e032e22f46a4e3876a9f239dc48545 on this deployment that requires exclusive access.