REST API Azure Error: 'Microsoft.Rest.HttpOperationException' Operation returned an invalid status code 'Un Authorized'
REST API Azure Error: 'Microsoft.Rest.HttpOperationException' Operation returned an invalid status code 'Un Authorized'
我正在我的 application.When 中开发嵌入式 Power BI 我正在从我的 power BI 帐户访问报告。我无法获得异常
REST API Azure 错误:'Microsoft.Rest.HttpOperationException' 操作返回无效状态代码 'Un Authorized'。
我已授予在 Azure 门户中查看我的应用程序的权限。我以为我的代码没有错。我认为这与我的应用程序在 Azure 门户中的权限有关。我错过了其他地方。请指导我。
为了添加权限,我已在下方关注 link
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-register-app/
这是更新:
我在 https://dev.powerbi.com/apps and choose view dashboard and reports then i am able to get the dashboard and reports but If i add permission to the existing project in https://portal.azure.com/ 中创建了新项目。我得到 exception.I 不,为什么我使用现有帐户出现 Unauthorised 异常。谁能帮我解决这个问题。
提前致谢。
我 运行 在设置执行 PowerBI 嵌入的应用程序时遇到相同或类似的问题。在我的场景中,我在嵌入的报告中使用直接连接。这些报告依靠 PowerBI 数据网关来获取数据。嵌入式主帐户或服务主体帐户需要添加为 PowerBI 数据网关上的管理员。
- 转到PowerBI.com
- 点击右上角的齿轮
- 单击管理网关
- 点击您的数据网关,它会默认显示“网关集群设置”选项卡。单击“管理员”选项卡并将您的嵌入式主帐户或服务主体添加为管理员。现在,当您尝试查看嵌入式报告时:'Microsoft.Rest.HttpOperationException' 返回无效状态代码的操作 'Un Authorized' 将得到解决,您将看到嵌入式报告。
我正在我的 application.When 中开发嵌入式 Power BI 我正在从我的 power BI 帐户访问报告。我无法获得异常
REST API Azure 错误:'Microsoft.Rest.HttpOperationException' 操作返回无效状态代码 'Un Authorized'。
我已授予在 Azure 门户中查看我的应用程序的权限。我以为我的代码没有错。我认为这与我的应用程序在 Azure 门户中的权限有关。我错过了其他地方。请指导我。
为了添加权限,我已在下方关注 link
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-register-app/
这是更新:
我在 https://dev.powerbi.com/apps and choose view dashboard and reports then i am able to get the dashboard and reports but If i add permission to the existing project in https://portal.azure.com/ 中创建了新项目。我得到 exception.I 不,为什么我使用现有帐户出现 Unauthorised 异常。谁能帮我解决这个问题。
提前致谢。
我 运行 在设置执行 PowerBI 嵌入的应用程序时遇到相同或类似的问题。在我的场景中,我在嵌入的报告中使用直接连接。这些报告依靠 PowerBI 数据网关来获取数据。嵌入式主帐户或服务主体帐户需要添加为 PowerBI 数据网关上的管理员。
- 转到PowerBI.com
- 点击右上角的齿轮
- 单击管理网关
- 点击您的数据网关,它会默认显示“网关集群设置”选项卡。单击“管理员”选项卡并将您的嵌入式主帐户或服务主体添加为管理员。现在,当您尝试查看嵌入式报告时:'Microsoft.Rest.HttpOperationException' 返回无效状态代码的操作 'Un Authorized' 将得到解决,您将看到嵌入式报告。