How can I get the resource group name from within Service Fabric on Microsoft Azure

心已入冬 提交于 2019-12-25 07:47:35

问题


My service can be placed on different resource groups, but needs to know the name of the resource group in order to request information about the VM Scale Sets it's running on. How do I get the name of the Resource Group which the Fabric is in from within the Fabric?


回答1:


This may work:

If you uniquely tag your resource group, and configure the sf application to know that tag, you might be able to query the resource groups and filter by tag. You could use a Service Principal to access the Resource manager.



来源:https://stackoverflow.com/questions/41106332/how-can-i-get-the-resource-group-name-from-within-service-fabric-on-microsoft-az

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!