Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
RakeshSinghr
Resolver I
Resolver I

Power BI Dataset Deployments

Hello,

 

         Has anyone been able to perform all these steps below using App (Clientid/Secret):

1) Deploy PBIX dataset to power bi service 

2) update dataset parameter

3) Get a list of datasource id from Gateway cluster

4) Bind dataset to specific Gateway ( postman comes back as 'API is not accessible for application' message)

     there are 2 datasources with same server name so need to bind to specific gateway by using datasourceid

 

Steps 1 and 2 are possible using rest api and by using the App. However, steps 3 and 4 requires doesnt succeed.

   I have already added all delegate permissions to the App, Added the app as member to an azure group that has been provided Power BI Administrator role.

 

Is the only alternative is to create a dummy/service account -> provide admin access and then use it for deployments?

 

Thanks

Rakesh

 

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @RakeshSinghr ,

 

Have you tried API via below link?

https://docs.microsoft.com/en-us/powershell/module/datagateway/get-datagatewayclusterdatasource?view...

 

Or powershell?

https://www.sqlshack.com/connect-query-power-bi-azure-using-powershell/

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi Kelly,

 

             I'm able to get list of all workspaces,datasets, reports etc by invoking rest api method in powershell using Appid, secret.

Even publishing dataset to workspace is working but after publishing bindtogateway is not.

Hi @RakeshSinghr

 

Then check the below link:

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/bindtogateway

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi - I dont know how that link is going to help in anyway given the issue i described in my original post. I have already tried using that API.

 

I have now opened a ticket. I'd suggest reading through the post before responding with 'check out this url' thats not helpful to anyone.

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors