This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid 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
We’re excited to announce the preview of the Fabric CI/CD Python library! Recognizing the importance of CI/CD in our success, we decided to open source our project to share with the community. As part of the Azure Data Insights & Analytics team, an internal data engineering group focused on supporting product analytics for Azure Data, we’ve been using Fabric as the backbone of our platform for the last two years. Our team is committed to maintaining and evolving this library, and we look forward to collaborating with the community to enhance its capabilities!
Fabric-cicd is a code-first solution for deploying Microsoft Fabric items from a repository into a workspace. Its capabilities are intentionally simplified, with the primary goal of streamlining script-based deployments. Fabric-cicd is not replacing or competing with Fabric deployment pipelines or features that will be available directly within Fabric, but rather a complementary solution targeting common enterprise deployment scenarios.
This library offers a flexible deployment framework, yet there’s always room for innovation and improvement. Contributions are welcome to help improve its functionality—whether through raising feature requests or directly contributing to the code. For specific needs, or if you’re just looking for a starting point for your own solution, simply fork the repository!
Run the following shell command
pip install fabric-cicd
Create the following Python script
from fabric_cicd import FabricWorkspace, publish_all_items, unpublish_all_orphan_items
# Initialize the FabricWorkspace object with the required parameters
target_workspace = FabricWorkspace(
workspace_id = "your-workspace-id",
repository_directory = "your-repository-directory",
item_type_in_scope = ["Notebook","DataPipeline","Environment"],
)
# Publish all items defined in item_type_in_scope
publish_all_items(target_workspace)
# Unpublish all items defined in item_type_in_scope not found in repository
unpublish_all_orphan_items(target_workspace)
fabric-cicd_library_running_in_VS_Code_terminal
Contributors: Jacob Knightley, Joe Muziki, Kiefer Sheldon, Mohammad Al Aqrabawi, Shira Sassoon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.