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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
chetanhiwale
Helper II
Helper II

Data pipeline deployment using Deployment pipeline , issue with connection objects

While deploying data pipelines using Deployment pipelines, if a pipeline A has connection id in workspace A , after deploying it to another workspace B, the pipeline has the same connection id. Is there any way to change connection id too , like we do for semantic model using deployment rules. Currently for data pipeline, deployment rules are not supported, thus we need to manually change the connections in each pipeline.
Also what are the bestpracties with respect to handling connection objects with different envs, in git and deployment pipeline

My expected output is , after deploying pipeline A with connection id , we should be able change connection objects in other workspace, similarly we do using deployment rules.

1 ACCEPTED SOLUTION
spencer_sa
Super User
Super User

As you've said, currently pipeline settings (and specifically connection settings are not changed between stages of a deployment pipeline - there's no rule you can use.
As far as changing the connection id, I suspect you're going to be in the same boat as us regarding this in so far as the option you might find does the trick is altering the pipeline using the API.
Couple of ways of orchestrating this - you could write your pipeline alteration code using PowerShell and run it from the many places you can execute PowerShell.
Another alternative is to use a Fabric notebook and semantic_link_labs (sempy) with the class FabricRESTClient to get the pipeline JSON, search/replace the connection string, and then rewrite it back to Fabric.
We will be using a Fabric notebook to rewrite our lakehouse/workspace ids.
I await the arrival of workspace parameters which will make some of this *so* much easier.

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

View solution in original post

4 REPLIES 4
v-ssriganesh
Community Support
Community Support

Hi @chetanhiwale 

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.

v-ssriganesh
Community Support
Community Support

Hi @chetanhiwale 

Thanks for contacting the Microsoft fabric community forum.

You've identified correctly the limitation of deployment rules for data pipelines in Microsoft Fabric. There is currently no direct way to automatically change connection IDs as part of the deploy task - this means this has to be done manually, updating connection references in each pipeline for different environments.
While there isn't a direct solution in Fabric, we can use PowerShell scripting to automate the process of updating connection IDs within pipeline definitions.

If this helps then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.

Hope this works for you!

Thanks.

chetanhiwale
Helper II
Helper II

Thanks spencer_sa, for explaining the workaround. Currently we have also written scripts to handle the connection objects as you explained. But again, it would be very easily if Fabric has this functionality. Lets wait for Microsoft updates !!

spencer_sa
Super User
Super User

As you've said, currently pipeline settings (and specifically connection settings are not changed between stages of a deployment pipeline - there's no rule you can use.
As far as changing the connection id, I suspect you're going to be in the same boat as us regarding this in so far as the option you might find does the trick is altering the pipeline using the API.
Couple of ways of orchestrating this - you could write your pipeline alteration code using PowerShell and run it from the many places you can execute PowerShell.
Another alternative is to use a Fabric notebook and semantic_link_labs (sempy) with the class FabricRESTClient to get the pipeline JSON, search/replace the connection string, and then rewrite it back to Fabric.
We will be using a Fabric notebook to rewrite our lakehouse/workspace ids.
I await the arrival of workspace parameters which will make some of this *so* much easier.

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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