Forum Discussion

ryegavian's avatar
ryegavian
Frequent Visitor
9 months ago
Solved

Upload BigQuery credentials in a Semantic model, which API to use

Context:

  • I am trying to deploy PowerBI semantic model & report via API as part of a Ci-Cd on Azure Devops.
  • I am using a Service Principal, and doing the following steps: (i) deploy, (ii) take-over, (iii) upload credentials and (iv) refresh.
  • I am failing to upload credentials and thus can't refresh the semantic model (the refresh API calls itself works)
  • The semantic model uses a BigQuery datasource, the GCP credentials I am using are functionnal (they work when I upload them in the web interface here: https://app.powerbi.com/groups/me/gateways?experience=power-bi , and am able to access the BQ ressources using a connection using those credentials)
  • The azure service principal I am using has the Gateway.ReadWrite.All, Dataset.ReadWrite.All permissions and is admin of the workspace I am targeting.

I have tried the following API:

 

Question.

Which API endpoint should I use, given this is a connection to BigQuery? Am I approaching thing the right way? I do not know the PowerBI ecosystem well.

4 Replies