[英]How can I get the resource group name from within Service Fabric on Microsoft Azure
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. 我的服务可以放置在不同的资源组上,但是需要知道资源组的名称才能请求有关正在运行的VM Scale Set的信息。 How do I get the name of the Resource Group which the Fabric is in from within the Fabric?
如何从结构内部获取结构所在的资源组的名称?
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. 如果您对资源组进行唯一标记,并且将sf应用程序配置为知道该标记,则可以查询资源组并按标记进行过滤。 You could use a Service Principal to access the Resource manager.
您可以使用服务主体来访问资源管理器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.