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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
KateAllen
New Member

Switch gateway connection from Dev to Prod

I am using deployment pipeline to deployment reports from Dev to Prod. I am aware that we can use deployment rules or power query parameters to change the data source from Dev DB to Prod DB automatically while deploying. 

But, is there a way to change the gateway connection mapping and apply the correct gateway automatically?

2 ACCEPTED SOLUTIONS
Akash_Varuna
Super User
Super User

Hi @KateAllen i think you can’t automatically change gateway mappings during deployment for this you will probably have to go with REST API for autoamtion i guess

View solution in original post

manikumar34
Solution Sage
Solution Sage

@KateAllen 
Yes, you can automate the gateway connection mapping when deploying reports from Dev to Prod using Power BI REST API, PowerShell, or Azure DevOps pipelines. Since deployment pipelines don’t automatically switch the gateway, you’ll need to handle that separately.





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

6 REPLIES 6
v-menakakota
Community Support
Community Support

Hi @KateAllen ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @KateAllen ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank you.

Hi  @KateAllen ,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.

Thank you.

v-menakakota
Community Support
Community Support

Hi @KateAllen ,

Thank you for reaching out to us on the Microsoft Fabric Community Forum.

Yes, the solution provided by the @manikumar34  is correct. Power BI Deployment Pipelines do not automatically update gateway connection mappings, so using Power BI REST API, PowerShell, or Azure DevOps pipelines is the correct approach for automating this process.

manikumar34
Solution Sage
Solution Sage

@KateAllen 
Yes, you can automate the gateway connection mapping when deploying reports from Dev to Prod using Power BI REST API, PowerShell, or Azure DevOps pipelines. Since deployment pipelines don’t automatically switch the gateway, you’ll need to handle that separately.





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Akash_Varuna
Super User
Super User

Hi @KateAllen i think you can’t automatically change gateway mappings during deployment for this you will probably have to go with REST API for autoamtion i guess

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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