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
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.
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.
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.
-
Marked as answer by
Arwind - MSFTModerator
Monday, July 30, 2012 9:29 AM
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.
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. :(
-
Edited by
Vladimir Glafirov
11 hours 3 minutes ago
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. :(
-
Edited by
Vladimir Glafirov
Wednesday, July 01, 2015 8:14 PM
July 1st, 2015 8:13pm