where are the virtual machine files stored in windows azure and how to retrieve them programmatically with Azure Java SDK?
where does the virtual machine files are stored in Windows Azure and how to retrieve them with Azure SDK?
193 views Asked by Raja At
2
There are 2 answers
1
On
Raja - using the Java SDK you should.
- Connect to your subscription. See Brady's post.
- Enumerate your Virtual Machines (and filter appropriately) using ComputeManagementClient.
- For all Virtual Machines you care about look at their Disk collections and then using the URL of the VHD you can use the StorageManagementClient to download the VHD.
Note that you'd most likely want the VM switched off before doing the retrieval of the VHD.
The Virtual Datastore is essentially the Azure storage account where your virtual machines are stored. It contains the OS and Data Disks that comprise the VM (as Hyper-V VHD's). You can download them using any number Azure Storage tools, or write your own using your SDK of preference (such as the Azure Java SDK).