作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个在 Microsoft Azure 中运行的应用服务。我想知道是否有任何 API 可以获取我的订阅 ID,我的应用程序服务正在其中运行。我知道一个可以在虚拟机内部使用的 API,它返回包括订阅 ID 在内的元数据。但我找不到azure应用程序服务的任何相关API。我不想手动从配置发送订阅。我想一定有一种方法可以使用某些 API 自动获取。
提前致谢。
最佳答案
WEBSITE_OWNER_NAME环境变量:
Contains the Azure subscription ID that owns the app, the resource group, and the webspace.
关于azure - 如何从azure应用程序服务中查找subscrptionID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74034465/
我是一名优秀的程序员,十分优秀!