To export a virtual machine from Azure, you must install Azure PowerShell on any Windows family machine and use the Save-AzureVhd command to save the virtual drive. Command syntax:
Save-AzureVhd [-Source] [-LocalFilePath] [[-NumberOfThreads] ] [[-StorageKey] ] [[-OverWrite]] [ ]
- LocalFilePath - indicates the path to save VHD;
- NumberOfThreads - specifies the number of threads to to use when starting;
- OverWrite - indicates that you want to overwrite the file if it already exists;
- Source - specifies the URI for the BLOB in Azure
- StorageKey - specifies the storage key for the BLOB storage. If not specified, the commandlet will attempt to identify the account storage key in the source URI from Azure.
Examples:
In this example, the specified blob is loaded into the specified local file path:
Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd
In this example, it loads the specified blob at the specified local file path and overwrites the existing file if it exists:
Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -Overwrite
In this example, the storage key is specified for the download:
Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -StorageKey zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw==.
Note: You can navigate through the account container on the Azure portal to find the correct URL for the VHD.
The VHD downloaded from Windows Azure needs to be converted to VMDK format, for example using StarWind V2V Converter
Next, you can use VMware Workstation Pro to create a machine with the disc obtained after conversion and export it to OVF (see article).