如何以编程方式生成/获取资源的Azure门户链接?

时间:2018-09-27 14:17:38

标签: azure

通过Resources - List从Azure的Rest API中提供资源列表。有没有办法我可以可靠地生成或获取指向该资源的Azure门户(portal.azure.com)概述的链接?

1 个答案:

答案 0 :(得分:1)

要深层链接门户中的资源,这是我们用来创建链接的逻辑:

[portal-url]/#@[tenant-id]/resource/[resource-id]

哪里

[portal-url]https://portal.azure.com

[tenant-id]something.onmicrosoft.com or tenant guid

[resource-id]Id of the resource returned through resource list API call

相关问题