Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This feature is in preview.
Cosmos DB in Microsoft Fabric supports robust CI/CD capabilities through deployment pipelines and Git integration. This functionality streamlines development workflows and promotes consistency across environments. In this guide, you configure a deployment pipeline and Git integration for a database in Cosmos DB in Fabric.
Prerequisites
An existing Fabric capacity
- If you don't have Fabric capacity, start a Fabric trial.
An existing Cosmos DB database in Fabric
- If you don't have one already, create a new Cosmos DB database in Fabric.
Configure deployment pipeline
Deployment pipelines simplify the process of moving items like datasets, reports, or semantic models from one workspace to another. For example, you can use a deployment pipeline to migrate items between development, staging, test, and production environments. The pipeline compares items between environments and deploys only items with changes. In this section, a deployment pipeline is configured to migrate a database to a new workspace.
Open the Fabric portal (https://app.fabric.microsoft.com).
Navigate to your existing workspace with your Cosmos DB database.
In the menu bar, select Create deployment pipeline.
In the Add a new deployment pipeline dialog, enter a unique name for the pipeline, and then select Next.
Configure your pipeline's structure by defining stages like "Development," "Test," or "Production."
Select Create and continue.
Now, assign workspaces to each stage of the pipeline. Items in each workspace are automatically associated with the stage.
Once you have content in the first pipeline stage, deploy it to the next stage and any subsequent stages.
Tip
You can deploy to the next stage even if that stage has content. Paired items are overwritten.
Note
For more information about supported deployment pipeline items, see supported items in deployment pipelines.
Integrate with Git
Git integration streamlines the process of collaboration using version control for your Fabric items. Using the integration with Git, you can sync your Cosmos DB database with the repository, import items from Git into your current workspace, or track changes over time using the Gitflow (pull requests, branches, etc.). In this section, the database is integrated with a repository on GitHub.
Navigate to your existing workspace again.
In the menu bar, select Settings.
In the Workspace settings dialog, select Git integration.
Select the GitHub provider for Git.
If necessary, authorize your connection to GitHub.
Select the repository, branch, and folder for your destination GitHub repository.
Select Connect and sync.
Note
For more information about Git integration, see Get started with Git integration.