简体   繁体   中英

How to get the virtual machine name that my app is running on in azure

I have a java application running on an azure virtual machine Is there an API to get details on this VM? Specifically I need to get the VM name

Here is a REST API you can use that I found in Azure's docs: https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/get .

Usually from within the guest OS you cannot retrieve any sensitive information about the underlying VM without using external APIs because that will be a huge security vulnerability.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM