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! Request now

Reply
stefanik
Helper I
Helper I

PowerBI Deploy Management

Hi All,

i need some suggestions in order to find a way to manage the deploy phase of multiple pbix files into powerbi service.

 

My scenario is this:

1) i've created a pbix file that has many ApplicationInsigthts query (imported as blank query so i need to refresh them periodically from power bi service)

2) i've created parameters for the blank query that host applicationid, apikey and tenant name of the specific customer

 

At this point i have to publish the report in 1) for each customer into powerbi service (maybe 20-30). 

I figured this scenario:

 

3) i have to create a ps script to copy and rename the file in 1)

4) with power bi api i can publish each pbix file

5) with power bi api i can change the report parameters accondigly to the specific customer

6) with power bi api i can trigger a "first refresh"

 

At this point if i add a new tab into the main report, running 3-6 steps i can change all the customers report at the same time.

 

The only dowell that it is missed from this puzzle is that i have to specify the datasource credential of each report in powerbi service:

is there a way to specify the credential with powerbi api ( or in some automated way), or i have to rethink the entire structure?

 

Thanks

s

 

 

 

1 ACCEPTED SOLUTION

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @stefanik ,

 

Based on your description, reports are created based on different data sources.

I haven't tried what you said. See if this can help you:

https://docs.microsoft.com/en-us/power-bi/developer/automation/configure-credentials?tabs=sdk3 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Liang,

thanks for your time.

I already seen that docs but they always refer to some Gateway and i wasn't able to correctly run the the provided code. It seems that the signature of some methods are changed!

When I publish a new report into a powerbi service workspace, if not already present, a gateway are automatically created and binded to the dataset inside the report?

If yes, the discover api has to return it's id, right?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Solution Authors
Top Kudoed Authors