Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
export a vm, remove it and then importing it again fails with the azure cli (azure vm create-from) #254
These are the commands I am running to export the definition of the VM, then deleting the VM and after that creating it again from the definition. I want to do this because otherwise I get charged for a VM even if it's shutdown, so I want an automated way to bring it back fast with the original VHD.
This is the content of the json file generated by
Any workaround appreciated
Do not use vm-show, use "azure vm export" as in this post: http://blogs.msdn.com/b/silverlining/archive/2012/10/25/exporting-and-importing-vm-settings-with-the-azure-command-line-tools.aspx