where are the virtual machine files stored in windows azure and how to retrieve them programmatically with Azure Java SDK?
Asked
Active
Viewed 172 times
0
-
1Can you describe what you mean by "Virtual Machine Files"? – Gaurav Mantri Nov 24 '14 at 12:52
-
@GauravMantri We need to retrieve the virtual Datastores(terminology used in VMware) in Windows Azure. – Raja Nov 24 '14 at 13:39
-
A link for Virtual Datastores or some kind of explanation would certainly help finding equivalent in Azure VMs. Please update your question with more details. – Gaurav Mantri Nov 24 '14 at 14:31
-
I think Raja wants to retrieve the VHD. I found this Datastore info: http://www.virtualizationadmin.com/faq/virtual-datastore.html – CSharpRocks Nov 24 '14 at 15:32
2 Answers
0
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).

BrentDaCodeMonkey
- 5,493
- 20
- 18
0
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.

Simon W
- 5,481
- 3
- 24
- 35
-
Thank you. I was done with the 1st and 2nd points which you mentioned, already. Regarding the 3rd point can you provide the equivalent method to retrieve them? – Raja Nov 25 '14 at 09:05