代码之家  ›  专栏  ›  技术社区  ›  Kyle Brandt

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

  •  0
  • Kyle Brandt  · 技术社区  · 6 年前

    通过提供Azure Rest API的资源列表 Resources - List . 有没有一种方法可以生成或获取到Azure门户(Portal.Azure.com)对该资源的概述的链接?

    1 回复  |  直到 6 年前
        1
  •  7
  •   Kyle Brandt    6 年前

    要在门户中对资源进行深度链接,我们将使用以下逻辑创建链接:

    [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