Forum Discussion
Rest API Update Datasource returns an error when using UseCallerAADIdentity
Hi Anonymous
I'm sorry for late feedback this. Thanks you for your answer.
I previosly have tried to execute GetDatasources REST Api call to check the parameters, but the response does not help me. Here is a response
@odata.context : http://wabi-north-europe-redirect.analysis.windows.net/v1.0/myorg/groups/........../$metadata#datasources value : {@ {datasourceType=Extension; connectionDetails=; datasourceId=...............; gatewayId=.....} }
I also tried to get information about my datasource
with following endpoint
@odata.context : http://wabi-north-europe-redirect.analysis.windows.net/v1.0/myorg/$metadata#gatewayDatasources/$entity
id : ....
gatewayId : ....
datasourceType : Extension
connectionDetails : {"extensionDataSourceKind":"AzureDataExplorer","extensionDataSourcePath":"https://.....westeurope.kusto.windows.net"}
credentialType : OAuth2
credentialDetails : @{useEndUserOAuth2Credentials=False}
To give you more context I would say that I have used Kusto connector and the credentials object should be empty if theuseCallerAADIdentity is set to true. The idea is to use the AAD identity of the calling (app that will embed the report) application.
oyermokhin : I am having a similar requirement where i need to update credentials for Azure Data Explorer data source through Power BI Rest API call in a powershell script. Were you successful in your approach ? If yes, do share the solution for this.