Coder Social home page Coder Social logo

Comments (4)

yuezh avatar yuezh commented on June 12, 2024

That's reasonable requirement. We will work with service team to add that. @andyzhangx may provide you some workaround to get the location info from existing api.

from walinuxagent.

andyzhangx avatar andyzhangx commented on June 12, 2024

the location info in VM is under file /var/lib/waagent/ExtensionsConfig*
You cloud use the following command line to get location info:
grep '' /var/lib/waagent/ExtensionsConfig* --no-filename | sed 's///g' | sed 's/</Location>//g' | sed 's/ //g' | tr 'A-Z' 'a-z' | uniq

from walinuxagent.

smereczynski avatar smereczynski commented on June 12, 2024

Hah, I did not noticed that because of differences between ExtensionsConfig iterations. I have 4 iterations of this file:

ExtensionsConfig.1.xml
ExtensionsConfig.2.xml
ExtensionsConfig.3.xml
ExtensionsConfig.4.xml

and I was looking for something like in the fourth one. But this is just in the first one. Thank You for hint!

from walinuxagent.

ahmetb avatar ahmetb commented on June 12, 2024

There are plans to launch an Instance Metadata API for Azure. It will give you an HTTP API to gather more information about the VM and the subscription it is running in. Please stay tuned.

Closing as the issue not about to the agent.

from walinuxagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.