Forum Discussion

bhavya5903's avatar
bhavya5903
Advocate II
1 year ago
Solved

How to Handle Dynamic Environment Configuration in Microsoft Fabric Deployment Pipeline?

Hi Fabric Community, I'm deploying my Microsoft Fabric project using Deployment Pipelines, moving from Dev to Prod workspaces. However, I'm struggling to dynamically configure environment-specific ...
  • AntoineW's avatar
    1 year ago

    Hi bhavya5903 ,

    Thanks again for raising this — I wanted to provide an important update based on recent capabilities introduced in Microsoft Fabric (currently in preview):

     

    The Variable Library is now available and designed exactly to address environment-specific configurations within Deployment Pipelines.

     

     

    What is the Variable Library?

    The Variable Library acts as a centralized store of configuration variables (e.g., Lakehouse names, Warehouse references, wait durations, endpoints), with different values per stage of the deployment pipeline (e.g., Dev, Test, Prod).

    This enables dynamic resource switching across environments without modifying your pipeline or notebook logic.

     

    Key Capabilities:

    • Define variables once and reuse across pipelines, shortcuts, and notebooks
    • Assign different values per environment/stage (e.g., Dev_Lakehouse vs. Prod_Lakehouse)
    • Compatible with CI/CD, Git integration, and Fabric REST APIs
    • Automatically resolves the correct value based on the active deployment stage

     

    Current Limitations:

    • Still in Preview – not yet GA
    • Not supported on all Fabric items yet (e.g., semantic models or dataflows)
    • Variable resolution is scoped per workspace, not shared across workspaces

     

    Conclusion:

    If you're deploying Fabric assets across environments, the Variable Library is the most promising approach to ensure scalability, consistency, and automation for configuration management.

     

    Hope this helps others looking for the same flexibility — happy to collaborate and share examples if needed!

     

    Best regards,

    Antoine