<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4813433#M8409</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Sep 2025 11:35:15 GMT</pubDate>
    <dc:creator>v-echaithra</dc:creator>
    <dc:date>2025-09-01T11:35:15Z</dc:date>
    <item>
      <title>How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4803573#M8359</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt;&lt;BR /&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I am working with &lt;STRONG&gt;Microsoft Fabric workspaces&lt;/STRONG&gt; and facing an issue during deployment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;I deployed a workspace from &lt;STRONG&gt;Dev&lt;/STRONG&gt; to &lt;STRONG&gt;QA&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The workspace includes a &lt;STRONG&gt;Data Pipeline&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After deployment, the pipeline’s &lt;STRONG&gt;Lookup activity&lt;/STRONG&gt; and the &lt;STRONG&gt;pipeline database connection&lt;/STRONG&gt; are still pointing to the &lt;STRONG&gt;Dev database connection&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;BR /&gt;Currently, I have to &lt;STRONG&gt;manually update the database connection&lt;/STRONG&gt; in the Lookup activity and Data Pipeline after every deployment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expectation:&lt;/STRONG&gt;&lt;BR /&gt;I would like to configure &lt;STRONG&gt;Deployment Rules&lt;/STRONG&gt; (or any other supported mechanism) so that during deployment, the pipeline and lookup automatically point to the correct &lt;STRONG&gt;QA database connection&lt;/STRONG&gt; instead of Dev.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Is there a supported way to parameterize database connections in Data Pipelines during workspace deployment?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or is this a current limitation of Fabric Deployment Rules?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or workaround will be very helpful.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Labels:&lt;/STRONG&gt; Data Factory, Administration, General Discussion&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 10:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4803573#M8359</guid>
      <dc:creator>DarpanP</dc:creator>
      <dc:date>2025-08-21T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4804064#M8361</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have you already looked at the Microsoft documentation on deployment rules?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/create-rules?tabs=new-ui" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/create-rules?tabs=new-ui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also explained again in a video by Guy in a Cube.&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/mXngl2ChBxM?si=txpVnv6fjPiUXT69" target="_blank"&gt;https://youtu.be/mXngl2ChBxM?si=txpVnv6fjPiUXT69&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps you for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 18:08:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4804064#M8361</guid>
      <dc:creator>spaceman127</dc:creator>
      <dc:date>2025-08-21T18:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4804613#M8363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to Microsoft Community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Microsoft Fabric's current CI/CD deployment process presents a challenge when it comes to environment-specific connections in data pipelines and Lookup activities. Unlike semantic models, dataflows (Gen1), and reports, which are supported by Fabric’s deployment rules, pipelines and Lookup activities retain their original connection GUIDs after deployment. This means that even if a resource with the same name exists in the QA or Prod environment, the pipeline will still point to the Dev resource unless manually updated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You can try this workaround to use the new Variable Libraries feature, which is currently in preview. This allows you to define configuration variables such as connection object IDs and database names with default values for Dev and alternate values for QA or Prod. Within your pipeline, you can reference these variables using dynamic expressions under “Dynamic Content.” When the pipeline runs in the target workspace, the active value set from the Variable Library ensures the correct GUID is used. However, keep in mind that this method only supports GUID-based parameterization, and data preview is disabled for parameterized activities.&lt;BR /&gt;Reference:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/variable-library-integration-with-data-pipelines" target="_blank"&gt;Variable library integration with Data pipelines (Preview) - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://microsoft.github.io/fabric-cicd/0.1.24/how_to/parameterization/?utm_source" target="_blank"&gt;Parameterization - fabric-cicd&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Another option is to use the open-source Fabric-cicd deployment tool. This tool enables automated substitution of connection GUIDs by defining mappings in a parameter.yml file. You specify the find_key path in the pipeline JSON that points to the connection GUID, and then map it to environment-specific GUIDs for QA or Prod. During deployment, Fabric-cicd updates the pipeline JSON accordingly before pushing it to the target workspace. This approach is reliable and automates the GUID swapping process, though it does require managing pipeline files outside the Fabric UI.&lt;/P&gt;
&lt;P&gt;Both methods offer viable solutions depending on your workflow preferences and tolerance for preview limitations or external tooling.&lt;BR /&gt;For more details on deployment rules, refer to Microsoft’s official documentation&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/create-rules?tabs=new-ui" target="_blank"&gt;Create deployment rules for Fabric's ALM - Microsoft Fabric | Microsoft Learn&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;BR /&gt;Warm Regards,&lt;BR /&gt;Chaithra E.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 07:22:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4804613#M8363</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-08-22T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4806639#M8369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I hope the information provided is helpful.I wanted to check whether you were able to resolve the issue with the provided solutions.Please let us know if you need any further assistance.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 10:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4806639#M8369</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-08-25T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4809275#M8384</link>
      <description>&lt;P&gt;Solution:&lt;BR /&gt;Parameterize database connections in Linked Services (e.g., ServerName, DatabaseName).&lt;/P&gt;&lt;P&gt;Pass these parameters from the pipeline.&lt;/P&gt;&lt;P&gt;Use Deployment Rules to set environment-specific values for QA, Dev, Prod.&lt;/P&gt;&lt;P&gt;Alternative: Create separate Linked Services for each environment and make the pipeline pick the correct one via a parameter.&lt;/P&gt;&lt;P&gt;Key point: Without parameterization, Fabric requires manual updates—automatic switching isn’t supported.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 15:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4809275#M8384</guid>
      <dc:creator>Shahid12523</dc:creator>
      <dc:date>2025-08-27T15:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4809898#M8389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Chaithra E.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 07:22:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4809898#M8389</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-08-28T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4809992#M8391</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is absolutely possible to parameterize connection strings to automatically switch between your development (Dev) and testing (QA/Test) environments. I use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Variable Libraries&lt;/STRONG&gt;&lt;SPAN&gt; within Fabric. You have first to enable in the admin portal on Microsoft Fabric because it's in Preview mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The official Microsoft documentation confirms this approach. By using a variable library, you can define variables for each environment (for example, Dev_Database_Connection_String and QA_Database_Connection_String) and link them to the parameters of your data pipeline activities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Important point:&lt;/STRONG&gt; There is one manual step you must not forget. After deploying to the test environment, you need to make sure to set the test environment's variable library as the active library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation detailing this process is available here: &lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/variable-library/get-started-variable-libraries?tabs=home-page" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/cicd/variable-library/get-started-variable-libraries?tabs=home-page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In short, you no longer need to manually update the connection after each deployment. This is a key feature of Fabric for automating and securing your deployment processes.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Hope it can help you !&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Best regards,&lt;/DIV&gt;&lt;DIV class=""&gt;Antoine&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Aug 2025 08:31:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4809992#M8391</guid>
      <dc:creator>AntoineW</dc:creator>
      <dc:date>2025-08-28T08:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4813433#M8409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1339706" data-lia-user-login="DarpanP" class="lia-mention lia-mention-user"&gt;DarpanP&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 11:35:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/4813433#M8409</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-09-01T11:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically switch database connections when deploying Data Pipeline from Dev to QA</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/5145636#M9296</link>
      <description>&lt;P&gt;While deploying code from Dev to Prod, I encountered the same issue — the connection was being deployed and still pointing to the Dev environment from the Prod workspace.&lt;/P&gt;&lt;P&gt;Below is a simple workaround I implemented for the stored procedure and lookup activity.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;First Create - Library Variable&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;warehouse_id&amp;nbsp;- Library Variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;warehouse_sql_end&amp;nbsp;- Library Variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;System Variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;workspace_id : System Variable&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Lookup:&lt;/STRONG&gt;&lt;BR /&gt;Connection - (none)&lt;BR /&gt;Connection Type:&amp;nbsp; Warehouse/Lakehouse&lt;BR /&gt;Warehouse:&amp;nbsp;warehouse_id&amp;nbsp;- Library Variable&amp;nbsp;&lt;BR /&gt;Wokrspace ID :&amp;nbsp;Workspace_id : System Variable&amp;nbsp;&lt;BR /&gt;SQL Connection String :&amp;nbsp;warehouse_sql_end&amp;nbsp;- Library Variable&amp;nbsp;&lt;BR /&gt;Choose object : Table/Query/Store Procedure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Store Procedure:&amp;nbsp;&lt;BR /&gt;Connection (Warehouse ID): GUID Here I am Using Warehouse ID from Library Variable&amp;nbsp;&lt;BR /&gt;Connection Type: Warehouse&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL connection name :&amp;nbsp;warehouse_sql_end&amp;nbsp;- Library Variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wokrspace ID :&amp;nbsp;Workspace_id : System Variable&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This approach worked well for me, and the code has been successfully deployed to production.&lt;BR /&gt;Thank You,&lt;BR /&gt;Jagdish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 08:08:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-to-automatically-switch-database-connections-when-deploying/m-p/5145636#M9296</guid>
      <dc:creator>jagdishwagh0909</dc:creator>
      <dc:date>2026-04-09T08:08:03Z</dc:date>
    </item>
  </channel>
</rss>

