How can I get the resource group name from within

2019-09-14 20:50发布

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条回答
2楼-- · 2019-09-14 21:14

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.

查看更多
登录 后发表回答