Edit

Share via


Configure continuous integration and continuous deployment for Cosmos DB in Microsoft Fabric (preview)

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

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.

  1. Open the Fabric portal (https://app.fabric.microsoft.com).

  2. Navigate to your existing workspace with your Cosmos DB database.

  3. In the menu bar, select Create deployment pipeline.

  4. In the Add a new deployment pipeline dialog, enter a unique name for the pipeline, and then select Next.

  5. Configure your pipeline's structure by defining stages like "Development," "Test," or "Production."

  6. Select Create and continue.

  7. Now, assign workspaces to each stage of the pipeline. Items in each workspace are automatically associated with the stage.

  8. 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.

  1. Navigate to your existing workspace again.

  2. In the menu bar, select Settings.

  3. In the Workspace settings dialog, select Git integration.

  4. Select the GitHub provider for Git.

  5. If necessary, authorize your connection to GitHub.

  6. Select the repository, branch, and folder for your destination GitHub repository.

  7. Select Connect and sync.

Note

For more information about Git integration, see Get started with Git integration.