Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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
Before the introduction of the Fabric Variable Library, managing configuration across workspace items was a significant challenge, especially in CI/CD processes. This created significant overhead and complexity.
Managing configuration across workspaces was a significant challenge.
CI/CD processes were less streamlined due to inefficient configuration handling.
Configurations had to be manually managed in multiple workspaces, leading to increased overhead.
Complexity arose from the lack of a unified system for managing configurations.
The Variable Library primary purpose is to provide a unified way to manage configuration across workspaces, streamline Continuous Integration and Continuous Deployment (CI/CD) processes by allowing configuration changes based on release stages. This feature aims to simplify the management of variables and sharing of configuration inside the workspace across different items.
Variable Library as a new item in Fabric, which acts as a bucket of variables that can be consumed by other fabric items in the same workspace. Customers can create and manage variable libraries, which include various types of variables much like environment variables do in traditional development and deployment workflows.
Users can also leverage the Variable Library to establish consistency across diverse components within a workspace. For instance, when multiple data pipelines depend on shared parameters, the library acts as a single source of truth, simplifying updates and reducing the risk of configuration errors. This cohesion facilitates smoother collaboration and streamlines operations, particularly critical in complex workflows.
Create a Variable Library by selecting New Item in workspace and name the variable library. This allows users to define and manage variables.
To define each variable, users need to specify its name, type, and default value. Additionally, there is a feature called “Add Value Set,” which allows users to create multiple value sets tailored for different stages such as development, testing, and production. This ensures flexibility in configuration management, enabling smoother transitions between stages without altering the core variable definitions.
Value Sets within the Variable Library offer an enhanced way to manage configurations tailored to specific deployment scenarios, such as development, testing, and production. By creating multiple value sets, users can ensure flexibility and adaptability in their workflows. A unique feature allows one value set to be designated as active, which becomes the default configuration for the workspace. This is particularly useful for environments that require distinct setups based on the stage of the CI/CD pipeline.
The Variable Library supports various consumer items, including data pipelines, notebooks, and lake houses. Currently, Variable library and its integration with data pipelines is currently in public preview. The resolution of values depends on the item's behaviour and can occur during runtime.
1. To use a Variable library variable in your pipeline, create a new pipeline or navigate to an existing pipeline as below.
In your data pipeline, navigate to “Library variables(preview)” where you need to create a reference to your variable library in the bottom panel
2. Once you have added your library variable references, add your pipeline activities. In the activity settings, click Add dynamic content for the setting you want to parameterize. The expression builder opens.
3. If you don't see Library variables (preview), click the 3 dots next to Functions and select Library variables (preview).
4. Click on your Library variable reference to add a new expression to the expression builder. Then, click Ok to add your expression.
5. We will now see that the dynamic content is added to your activity setting.
6. Save and run your pipeline as you normally would. You'll see that the value passed is whatever value is set as Active in your Variable library.
Notebook will support Variable Library through Notebook utilities, allowing users to reference variables in their code. The user experience includes a help section explaining how to reference the Variable Library variables.
The Variable Library seamlessly integrates with Git, enabling users to manage Variable Library items effectively. Public API is available for CRUD operations of item definitions.
Variable Listing: All variables are organized within a dedicated variable.json file for easy reference and management.
The roadmap for the Variable Library is ambitious, promising exciting developments that will further enhance its usability. These advancements aim to make the library a versatile tool for configuration management across diverse workflows.
Moreover, the possibility of automating the Variable Library via REST APIs opens doors for streamlined operations, allowing users to dynamically control variables and their values programmatically.
In conclusion, the Variable Library represents a transformative addition to the Fabric suite. By addressing critical pain points and offering a robust solution for centralized configuration management, it empowers users to optimize their workflows. Coupled with its comprehensive features and planned enhancements, including automation possibilities through APIs, the Variable Library is set to be indispensable for Fabric users striving for seamless integration and scalability.
What is Fabric Variable library? To learn more, refer to the Variable library documentation.
REST APIs to automate and interact with the Variable Library - REST API (VariableLibrary)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.