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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
carlo-spring
New Member

How to Dynamically Change Dataflow Gen2 Destination During CI/CD Deployment Between Workspaces?

Hi everyone,

 

Does anyone know how to dynamically change the destination of a Dataflow Gen2 (CI/CD) when deploying it from one workspace to another (e.g., from DEV to UAT or PRO)?

I frequently use Dataflow Gen2 with Git integration, and the biggest issue I’m facing is that every time I deploy a dataflow to a different workspace (UAT or PRO), I have to manually go into each dataflow and change its destination (usually a Warehouse) so it points to the correct workspace environment.

This becomes very inefficient and error-prone, especially when managing many dataflows across environments.

Is there a way to automate this destination switch during CI/CD deployment, maybe through environment variables, scripting, or some feature I might be missing?

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-veshwara-msft
Community Support
Community Support

Hi @carlo-spring ,

Thanks for raising this in Microsoft Fabric Community, and also thanks to @miguel  for addressing it.

 

As mentioned, currently, there's no built-in way to dynamically change the output destination during deployment, and it requires manually updating the destination in each environment. However, the product team is actively working on addressing this.

As noted in the Fabric roadmap, support for parameterizing the Dataflow Gen2 output destination is planned for public preview in Q3 2025. This should help streamline CI/CD deployments across workspaces once available.

For now, continuing with manual updates remains the approach until that feature is released.

 

Hope this helps. Please reach out for further assistance.

Please consider marking the helpful reply as Accepted Solution to help others with similar issues.

Thank you.

View solution in original post

6 REPLIES 6
v-veshwara-msft
Community Support
Community Support

Hi @carlo-spring ,

Thanks for raising this in Microsoft Fabric Community, and also thanks to @miguel  for addressing it.

 

As mentioned, currently, there's no built-in way to dynamically change the output destination during deployment, and it requires manually updating the destination in each environment. However, the product team is actively working on addressing this.

As noted in the Fabric roadmap, support for parameterizing the Dataflow Gen2 output destination is planned for public preview in Q3 2025. This should help streamline CI/CD deployments across workspaces once available.

For now, continuing with manual updates remains the approach until that feature is released.

 

Hope this helps. Please reach out for further assistance.

Please consider marking the helpful reply as Accepted Solution to help others with similar issues.

Thank you.

I'm just wondering if this feature has been added, as I cannot find a way to dynamically change the output destination during deployment.

Corujo
Frequent Visitor

There is a way to do it, but it’s inconvenient. Basically, you can create variables for the workspace_id and the lakehouse_id in a variable library, and then only from GitHub you can change the destination by replacing the workspace_id and lakehouse_id with the variables created in the library.

In this article, the examples of what needs to be modified in the mashup.pq file in GitHub are shown in the final section.

 

https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-references

miguel
Community Admin
Community Admin

Hi @carlo-spring ,
Just wanted to check if the response provided was helpful. If yes, please consider marking it as "Accepted Solution" to assist others with similar queries. If further assistance is needed, please reach out.
Thank you.

miguel
Community Admin
Community Admin

We're working on multiple solutions for this. At the moment you are correct that you have to make the changes in each of the stages.

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2026

Check out the April 2026 Fabric update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Top Solution Authors
Top Kudoed Authors