拉比小新  
配置OP部署的CRM使其支持PowerBI通过Odata方式连接数据源
主要核心步骤分为两步
1.部署IFD
2.设置OAuth

下面关于设置OAuth主要操作

一、配置

a. crm部署服务器PowerShell设置
$ClaimsSettings = Get-CrmSetting -SettingType OAuthClaimsSettings
$ClaimsSettings.Enabled = $true
Set-CrmSetting -Setting $ClaimsSettings
 
b.设置powerbi 客户端id(ID任意不重复即可)
Add-AdfsClient -ClientId "a672d62c-fc7b-4e81-a576-e60dc46e951d" -Name "Microsoft Power BI" -RedirectUri @("https://de-users-preview.sqlazurelabs.com/account/reply/", "https://preview.powerbi.com/views/oauthredirect.html") -Description "ADFS OAuth 2.0 client for Microsoft Power BI"
 
c.设置客户端id授权 id需要和步骤b保持一致。ServerRoleIdentifier参数为crm访问域名即可
Grant-AdfsApplicationPermission -ClientRoleIdentifier "a672d62c-fc7b-4e81-a576-e60dc46e951d" -ServerRoleIdentifier "https://crm.xxxx.com/"
 
二、连接PowerBI desktop
1.选择数据源

 

 

2 认证方式
组织账户 然后输入账户密码即可
 
三、移除授权
Remove-AdfsClient -TargetName "Microsoft Power BI"

posted on 2022-01-19 17:24  拉比小新  阅读(171)  评论(0编辑  收藏  举报