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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors