简体   繁体   English

如何在 azure 中获取运行我的应用程序的虚拟机名称

[英]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?我有一个 java 应用程序在 azure 虚拟机上运行 是否有 API 以获取有关此 VM 的详细信息? Specifically I need to get the VM name具体来说,我需要获取 VM 名称

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 .这是一个 REST API 你可以使用我在 Azure 的文档中找到的: https://docs.microsoft.com/en-us/gettualmachine/compute

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.通常在来宾操作系统中,如果不使用外部 API,您将无法检索有关底层 VM 的任何敏感信息,因为这将是一个巨大的安全漏洞。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何知道虚拟机是否在Azure中停止 - How to Know if Virtual Machine is stopped in Azure 任何可能的方法来指定正在运行的 Java 虚拟机的名称? - Any possible way to specify the name of running java virtual machine? 如何在计算机上找到正在运行的Java虚拟机? - How can I find which Java Virtual Machine is running on my computer? 如何使用ARM获取Azure虚拟机的电源状态 - How can I get the power state of an Azure virtual machine using ARM 如何仅在我的应用程序中获取运行线程 - How to get the running threads in my App only 如何在虚拟机中运行的主机中访问Web应用程序 - How to access web application in host running in virtual machine 在运行RHEL6的虚拟机中,如何防止屏幕变黑? - How to prevent screen going blank in a virtual machine running RHEL6? 如果我当前的应用程序在后台 android 中,如何获取当前正在运行的应用程序 - How to get Current running app if my current app is in background android 如何远程调试Java应用并将端口转发到虚拟机? - How to remotely debug java app and forwarding the port to virtual machine? 如何重新关注在Solaris机器上运行的Swing Java GUI? - How to get back focus on my Swing Java GUI running on a Solaris machine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM