【问题标题】:Export powerbi embedded report to pdf. Does it need Azure AD?将 powerbi 嵌入式报告导出为 pdf。是否需要 Azure AD?
【发布时间】:2021-07-13 13:31:04
【问题描述】:

我正在尝试将 Power BI 嵌入式报告导出为 pdf 或 pptx。在 C# 中使用 API。

我正在关注文档的此链接:

https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to

它似乎符合我的需要,但有一些我不明白的复杂情况。

似乎没有解决创建对象 Client 的复杂性:

// The 'Client' object is an instance of the Power BI .NET SDK
var export = await Client.Reports.ExportToFileInGroupAsync(groupId, reportId, exportRequest);

这似乎是 PowerBIClient 类的一个对象,要实例化它需要一个 Uri 和一个 TokenCredential。

要获得此令牌,似乎唯一的方法是将报告作为 Azure AD 上的应用程序。

这是我的问题:这是真的吗?唯一的身份验证方法是在 Azure AD 上安装一个应用程序,或者即使没有它我也可以导出报告?

【问题讨论】:

    标签: c# azure powerbi powerbi-embedded


    【解决方案1】:

    Azure 中几乎所有的 API 都遵循类似的身份验证方法。对于 Powerbi,您有两种选择。

    • 应用程序 ID
    • 证书。 请阅读此here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多