Microsoft Fabric Deployment Plan: Setup, YAML & Examples
Deploy a Lakehouse, run the jobs that prepare its tables, then deploy a dependent Warehouse. Follow the setup, Git YAML, pre/post actions and safe failure-recovery steps.
Quick answer: what does a Fabric Deployment Plan do?
A Microsoft Fabric Deployment Plan is a workspace item that adds deployment order and pre/post actions to an existing Git, deployment-pipeline, or supported API operation. It does not run by itself, does not automatically select all referenced items, and does not roll back completed work if an action fails. Begin by enabling the preview tenant setting, creating a plan in the source workspace, adding one deployment group per item, attaching actions, saving, and selecting the plan during a supported deployment. Microsoft’s overview.
Watch an actual Microsoft Fabric Deployment Plan demo

Advertisements
1. Deployment Plan vs Deployment Pipeline vs Git
These are complementary, not interchangeable. A deployment pipeline manages movement between development, test and production stages. Git stores and synchronizes item definitions. A deployment plan determines extra ordering and jobs while a supported operation runs. See our existing Fabric CI/CD guide for the broader promotion workflow.
| Tool | What it controls | When it is enough |
|---|---|---|
| Git integration | Versions and synchronizes compatible Fabric item definitions. | When source control and ordinary Update from Git are sufficient. |
| Deployment pipeline | Promotes selected content between stages/workspaces, with pairing and deployment rules where supported. | When the standard dependency order and no extra actions suffice. |
| Deployment Plan (preview) | Orders groups and runs supported items immediately before or after their group’s deployment. | When explicit ordering, data preparation, validation, or post-deployment execution is actually required. |
| Fabric data pipeline | Runs a data processing/orchestration workload. | When the task is moving or transforming data rather than promoting definitions. |
Example: a warehouse view needs a Delta table produced by a notebook after a Lakehouse has been deployed. Lineage may know that the warehouse references the lakehouse, but it cannot infer that you must run the notebook to create/populate the table before the view is deployed. A plan fills that gap.
2. How to create a Microsoft Fabric Deployment Plan (preview)
Prerequisites and permissions
- A Fabric subscription, a source workspace assigned to capacity in a supported region, and a Contributor or higher workspace role to create/edit the plan.
- An administrator must enable Users can create deployment plan (preview) items in Admin portal → Tenant settings, either organization-wide or for your approved security group.
- Supported items must exist in the source workspace. For Git-based promotion, configure both Git-connected source/target workspaces and the necessary deployment permissions.
- A plan does not grant item, source-system, workspace-identity, gateway, storage, or service-principal permissions to the deployment caller.
- Open the source Fabric workspace, select New item → Deployment plan, name it (for example,
RetailReleasePlan), and select Create. - Open the plan canvas. Drag or add a supported workspace item (for example,
Retail_Lakehouse) to create its own deployment group. Add a second group forRetail_Warehouse. - Draw the dependency from the prerequisite Lakehouse group to the dependent Warehouse group. The dependency connection establishes order; simply positioning boxes left-to-right does not.
- Choose the Lakehouse group and add an approved post-deploy Notebook action that loads the necessary table. If two notebook jobs must run in sequence, chain them using an action dependency.
- Confirm the action item can actually run in the target workspace. Check its Lakehouse attachment, environment-specific connections, parameters, and authorization. If a pre-action checks the target, ensure its runnable item already exists there or is deployed in an earlier group.
- Select Save. Resolve blocking cycles, duplicate group/action names, invalid references or self-dependencies. A warning about an unavailable target item may allow Save, but it is still something to resolve before a release.
- If your workspace uses Git integration, commit the plan alongside the definitions it references. Fabric serializes the plan into a versionable
plan.ymlin the deployment-plan item folder.
Exact UI steps: Create a deployment plan and Deployment plan permissions.
Advertisements
3. Worked example: Lakehouse → run notebooks → Warehouse
Let’s use Microsoft’s documented class of problem: the target Lakehouse definition arrives, but its dbo.orders_ready table is not populated. The Warehouse contains a view that reads it. You need both item order and data creation in the right place.
Illustrative sequence; step 5 is a validation practice, not an automatic plan action unless you configure a supported action.
| Plan group | Item deployed | Configured job actions | Depends on |
|---|---|---|---|
| Retail_Lakehouse | Lakehouse | Post: Load_Orders, then Prepare_Orders | None |
| Retail_Warehouse | Warehouse | None in this basic plan | Retail_Lakehouse group completes |
Notice that the two notebooks are actions of the Lakehouse group, not necessarily separate deployment groups. The final notebook needs to finish and verify that its output is queryable before the Warehouse is deployed. Fabric treats an action as completed when the item run ends—not when downstream catalogs automatically catch up.
Explore the source patterns in our Fabric notebooks tutorial and Data Pipelines guide. Microsoft’s deployment plan examples illustrate this exact type of dependency.
4. Interactive Deployment Plan scenario explorer
Choose a scenario, select the items you intend to deploy, and see the logical sequence. This is a browser-only teaching tool: it neither reads nor modifies a Fabric workspace, and it does not reproduce all Fabric lineage and item-type rules.
Lakehouse → Hydrate notebook → Publish notebook → Warehouse
For this example, select both item definitions and ensure the action notebooks are available in the target workspace when they run.
This illustrates the selection-versus-plan distinction. Selected items not included in a plan group can still deploy using standard behavior. A plan never creates workspace identities, connectors or Spark configuration for you.
5. Which pre- and post-deploy actions are supported?
A deployment-plan action runs another supported Fabric item. It is not an arbitrary local shell command, and it is not the same thing as a Warehouse project’s separate pre/post SQL scripts.
| Action item type | Job type in the plan | Typical controlled use |
|---|---|---|
| Notebook | Execute | Create/validate a Delta table or run a readiness check. |
| Data pipeline | Execute | Refresh a semantic model or orchestrate an approved process. |
| Dataflow Gen2 | Execute | Run a supported data refresh, but not the same dataflow twice in one plan. |
| Copy job | Execute | Stage approved data before dependent items deploy. |
| User data function | Execute | Run narrowly scoped supported logic; return output is capped at 512 KB. |
Action chains within a group run sequentially; even independent groups are not deployed in parallel by this preview. Actions can accept literal parameters or references to values in a Variable Library, with type-compatible parameters defined by the runnable item. Inspect your chosen item’s parameter schema before configuring the plan.
6. Deployment Plan YAML example: what goes into Git?
The authoring canvas is the safest starting point. Once connected to Git, Fabric serializes a plan.yml that can be reviewed in a pull request. The example below follows Microsoft’s published schema shape and illustrates logical IDs and dependencies. These IDs are placeholders: don’t paste them into production or replace real item IDs without validating against the Fabric schema.
$schema: https://developer.microsoft.com/json-schemas/fabric/item/deploymentPlan/definition/plan/1.0.0/schema.json
version: 1.0.0
groups:
- name: Retail_Lakehouse
logicalId: 11111111-1111-1111-1111-111111111111
postActions:
- name: Run Load_Orders
job:
type: Execute
logicalId: 22222222-2222-2222-2222-222222222222
- name: Run Prepare_Orders
dependsOn:
- actionName: Run Load_Orders
job:
type: Execute
logicalId: 33333333-3333-3333-3333-333333333333
- name: Retail_Warehouse
logicalId: 44444444-4444-4444-4444-444444444444
dependsOn:
- groupName: Retail_LakehouseDependencies are encoded in dependsOn, not by the text order of group blocks. The logicalId identifies the logical Fabric item across workspaces. For authoring, editing and validation, use Microsoft’s YAML explanation and your workspace’s actual serialized output.
Did item IDs change? Does the dependency graph have a cycle? Are actions pointing at target-ready items? Is the environment-specific Variable Library set intentional?
Secrets, external service permissions, arbitrary workspace configuration, live production data and every binding are not automatically portable because plan.yml is committed.
7. Attach the plan to an actual deployment
Option A: through a Fabric deployment pipeline (simplest first test)
- Create or open a deployment pipeline with separate Dev and Test stages, and confirm source/target workspace assignment and permissions.
- In the source stage, select the actual items to deploy. The plan doesn’t select them for you. Use related-item selection carefully and check the resulting scope.
- Choose Deploy, then select the Deployment Plan in the deployment dialog. Microsoft allows choosing an existing target-stage plan or incoming source-stage plan depending on the operation; review which definition is in use.
- Check that the plan’s required actions and dependencies are resolvable in the target. Add a meaningful deployment note, then deploy.
- Watch the deployment status and open any failed action’s item run history. After success, verify the target table and Warehouse view with a sanctioned test query.
Option B: Git integration
You can select a plan during branch-out, initial Git sync, Update from Git, or a supported branch-switch operation. The specific surface controls which plan version is selectable. For initial sync, make sure the plan and referenced definitions are included and all required target-side configuration exists before actions run.
Option C: supported REST automation
Use an existing authorized deployment workflow and add the plan in the options object. For example, the Deploy Stage Content API documents the following fragment; it is not a complete runnable request. The original payload still determines source, target and selected items.
POST https://api.fabric.microsoft.com/v1/deploymentPipelines/{deploymentPipelineId}/deploy?beta=true
{
"options": {
"deploymentPlan": {
"itemId": "YOUR_DEPLOYMENT_PLAN_ITEM_GUID",
"referenceType": "ByItemId"
}
}
}The API needs an authorized Entra token with the base operation’s scopes plus Item.Execute.All. Plan-aware API requests currently use beta=true. Bulk Import uses a different logical-ID reference; don’t mix API shapes. See Microsoft’s automation guide.
fabric-cicd does not support deployment plans, even in its bulk-import mode. Neither an external timer nor a workspace schedule runs the plan itself; automation must invoke a supported deployment operation with the plan attached. Attachment rules.8. Fix Microsoft Fabric Deployment Plan errors
Start with the exact error and the deployment operation. A validation failure while saving the plan is different from a notebook failing after the first item deploys.
Check the preview tenant setting, source capacity/region, and your workspace role. A Viewer can read a plan but can’t create/edit it.
Check whether you selected the actual content. Attaching or selecting a plan alone does not necessarily add its referenced items to the release.
Remove circular dependencies or rename conflicting groups/actions. The schema validates names and references when you save, including when edited through Git.
Check that the runnable item exists and is executable in the target workspace. Pre-actions cannot invoke their own group’s not-yet-deployed item.
Confirm the expected Delta table is queryable through the SQL analytics endpoint before the next group; action completion does not guarantee downstream readiness.
Verify deployer/connection/workspace identity, permissions, target bindings and Variable Library active values. A deployment plan does not grant access.
What happens if an action fails halfway through?
The operation stops. Earlier item definitions and any prior action side effects remain; later groups don’t deploy. The plan has no automatic rollback. Inspect deployment status, open the failing notebook/dataflow/pipeline’s run history, record what already completed, and ensure a retry will not duplicate an append or repeat a destructive step.
Microsoft’s deployment-plan troubleshooting covers blocking errors, warnings and incomplete deployments.
9. Preview limitations, governance and production checklist
These limits determine whether the feature fits a real release. The documentation is evolving during preview, so confirm the latest constraints before building a critical process around them.
| Current documented behavior | Why it matters |
|---|---|
| One deployment plan per operation; one target workspace per run | Coordinate multi-workspace promotions outside the plan. |
| One item per deployment group | Use explicit group dependencies; don’t model a group as a batch of unrelated items. |
| Up to 20 pre-actions and 20 post-actions per group | Keep release steps focused; large procedural plans are hard to test. |
| Actions run sequentially, not in parallel | Do not assume parallel speedups or the same run times as independent workloads. |
| Plan size 1 MB; up to 1,000 groups; max 20 action parameters | Invalid definitions are rejected during Save, Git pull or API updates. |
| No automatic rollback or downstream readiness wait | Implement idempotence, readiness checks and incident recovery in the actions and release process. |
| Workspace identity, connections, Spark settings and gateway bindings are not deployed by plans | Prepare every target workspace separately before running dependent actions. |
Quick release-readiness checklist
0 of 6 readiness checks marked. This is a personal checklist, not a Fabric validation.
Checklist state stays in the current browser session and is not submitted or stored by this article.
10. Microsoft Fabric Deployment Plan: frequently asked questions
Does a deployment plan replace a deployment pipeline?
No. Deployment pipelines choose and promote items between stages. The optional plan adds ordering and pre/post actions to that operation. Git integration and certain APIs can also attach a plan.
Does adding a plan automatically deploy its referenced items?
No. The deployment operation determines its selected items. Check the item list and required action dependencies before deploying. In some pipeline scenarios you can choose an incoming plan, but this still does not imply every group item is selected.
Can I run a notebook before deploying the same notebook?
Not as a pre-action in the notebook’s own group when the item does not yet exist in the target. Deploy the checker notebook in an earlier group, then reference that existing target item in a later group’s pre-action.
Can a plan run an arbitrary PowerShell or SQL script?
Not directly. Deployment Plan actions run supported Fabric item/job combinations such as a Notebook or Data pipeline with Execute. Warehouse-project pre/post SQL scripts are a distinct feature.
Does a deployment plan work with fabric-cicd?
Not in current Microsoft documentation. Use a supported Git-integrated operation, deployment pipeline or the specified REST APIs to attach the plan.
What happens when an action fails?
Deployment stops. Completed items and actions remain changed, and subsequent groups do not deploy. Inspect the failed action item’s run history, reconcile completed work, then retry safely with an approved recovery plan.
Can a plan move a Lakehouse’s tables and data into production?
A deployment promotes item definitions, not the live data itself. Use supported post-deploy Notebook, Pipeline or other actions to create/load target tables deliberately, using environment-specific connections and data permissions.
Can plans run on a timer or be attached permanently?
No. A plan is attached per deployment operation. External automation can invoke a supported plan-aware operation on a schedule, supplying the plan for that request.
11. Official Microsoft documentation and review scope
This article was reviewed against Microsoft Learn and the current preview documentation on November 23, 2026. The walkthrough describes a documented process; it has not been executed against your Fabric tenant. Validate feature rollout, effective identity, connector bindings, source data and runtime behavior before a production release.
- What is a deployment plan? — scope, lineage, execution behavior and constraints
- Create a deployment plan — tenant setting, canvas, dependencies and Git versioning
- Deployment Plan actions — supported types, parameters, chaining and limits
- Deployment Plan examples — sample Lakehouse and Warehouse workflow and YAML
- Attach a deployment plan — Git, pipeline and API selection behavior
- Automate a deployment with a plan — beta APIs, scopes and reference types
- Troubleshoot deployment plans — errors, warnings and no-rollback recovery
- Permissions — workspace roles and service principals


