Git integration versions your work. Deployment pipelines move it. A pipeline is a chain of stages, usually Development, Test and Production, each backed by its own workspace. You build in the first stage, check the result in the next, and promote to the last once it is right. Users only ever consume the final stage.
Structure of a pipeline
- You choose the stages when you create the pipeline. The default is three, named Development, Test and Production, and you may have from 2 to 10. The number of stages and their names are permanent, so decide up front.
- Each stage is linked to a workspace. You can assign an existing workspace to an empty stage, or deploy into an empty stage and let Fabric create the new workspace on a capacity for you.
- A stage can be marked public, and you can change that at any time.
- Deployment goes to an adjacent stage, forwards or backwards. Backward deployment is only possible into an empty stage.
What a deployment does
When you deploy, Fabric copies the items from the source stage into the target stage and keeps their connections. In the target stage it recognizes existing content by the link between an item and its earlier clone. Matching items are overwritten in content, but keep their ID, URL and permissions, while new items are added.
The pipeline home page compares neighboring stages and flags differences, pairing items by type and name. Do that comparison before pushing.
You can deploy everything, or use selective deployment to pick items. Because items depend on each other (a report on a semantic model), the select related option adds the dependencies for you. If a deployed item depends on something that is neither deployed nor already present in the target, the deployment fails. When a dependency does exist in the target, deployment pipelines autobind to it automatically. Autobinding across pipelines matches stages by position, and both pipelines need the same number of stages.
What is not copied
Only definitions and metadata move. These stay as they were in the target:
- The data itself, so after deploying a semantic model you refresh it.
- Permissions on the workspace or its items, and workspace settings.
- For semantic models: role assignment, refresh schedule, data source credentials and endorsement settings.
A gateway mapping is not configured automatically for an item on first deployment.
Deployment rules
Stages need different settings, for instance a test database in Test and the real one in Production. Deployment rules change a value as content lands in a stage. You define the rule in the target stage, and it applies at the next deployment, not before. Three kinds exist:
- Data source rules replace a data source with another of the same type. Used for dataflows gen1, semantic models, paginated reports and mirrored databases.
- Parameter rules set a parameter value. Used for dataflows gen1 and semantic models.
- Default lakehouse rules point a notebook at the lakehouse of that stage.
Rules are greyed out if you are not the item's owner, and one data source cannot appear in two rules. Variable libraries are the newer way to hold per-stage values, and a deployment plan (preview) can add ordering and actions to a deployment when you need it.
Permissions
A pipeline has a single permission, Admin, needed to share, edit and delete it. Workspace access is separate. To deploy between stages you need to be a pipeline admin and also a Contributor, Member or Admin in the workspaces involved. A pipeline admin with no workspace role can see the pipeline but not its content. Microsoft 365 groups cannot be pipeline admins.
Git or deployment pipelines?
They solve different problems and are often combined: Git for history and branching in development, a pipeline for controlled promotion to test and production. Warehouses, notebooks, lakehouses, eventstreams and pipelines are among supported items.
Common mistakes
- Planning for a fourth stage after creation.
- Expecting data or refresh schedules to arrive with the deployment.
- Creating a rule in the source stage instead of the target.
- Deploying a report without its semantic model in the target.
For the exam
- Stages: 2 to 10, fixed once created; deployment is between adjacent stages.
- Deployment copies metadata, not data; the target keeps its own permissions and settings.
- Rules (data source, parameter, default lakehouse) are set in the target stage and take effect on the next deployment.
- Pipeline admin plus workspace Contributor or higher is needed to deploy.
- Selective deployment and select related handle dependencies; missing dependencies fail the deployment.