Does Azure VM support Instance Metadata?

It's very exciting that users can create Windows/Linux Virtual Machines with Azure. I'd like to know whether the Virtual Machine can support getting instance metadata from Azure storage just like EC2 [0] does?

Thanks.

[0] http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html

July 11th, 2012 6:56am

I'm not sure what instance metadata do you want to get. But the management API may help: http://msdn.microsoft.com/en-us/library/windowsazure/ee460799

Free Windows Admin Tool Kit Click here and download it now
July 12th, 2012 1:35am

Thanks Arwind, what I want is: inside the VM, get information like "instance ip address", "instance dns name" or retrieve a customized script from API.

It seemed I cannot do that now, right?

July 12th, 2012 5:05am

If you want to get local machine's information, you don't need a REST API. Both Windows and Linux provide native methods to query such information. For example, getaddrinfo (http://en.wikipedia.org/wiki/Getaddrinfo) can give you the local IP address, and it works on both Windows and Linux.
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2012 9:02am

OK, what if I want retrieve a customized script or store some data in a file, related to this instance, can I do that in Azure?
July 13th, 2012 5:36am

Hi Xiangjun,

It is not recommended to perform instance specific tasks. All instances of the same role should use the same logic. If you need different logic, you can use multiple roles.

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 8:44am

-- All instances of the same role should use the same logic. If you need different logic, you can use multiple roles.

This is not completely true. There can be valid reasons for doing different processing on different instances. For example, Windows Azure Diagnostics does this with any of its instance-specific methods such as on-demand transfers.

July 20th, 2012 8:55am

Hey, all.
Currently I'm interested in the same question and can't get the answer anywhere. 
AWS and OpenStack does provide this feature in the following way: 

http://docs.openstack.org/user-guide/content/user-data.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html

I can't see how I can use VM roles for solving this question.

Thanks for answering.
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2013 10:16am

I'm not sure why this is marked as an answer when it's not particularly relevant to the original question. 
December 16th, 2013 2:23am

This is very ridiculous answer :( You don't even know what topic starter is asking, and did not even looked on documentation in reference. :( I had the same question, but I see that it wasn't resolved for years. Very disappointing. :( 
Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 4:16pm

This is very ridiculous answer :( You don't even know what topic starter is asking, and did not even looked on documentation in reference. :( I had the same question, but I see that it wasn't resolved for years. Very disappointing. :( 
July 1st, 2015 8:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics