UltimateInfoGuide · Microsoft Fabric · CI/CD hands-on

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.

Public previewTested against Microsoft docs: 23 Nov 2026One complete sample plan

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

Video thumbnail: Microsoft Fabric Deployment Plan Explained by Aleksi Partanen and Teemu Multanen

Deployment Plan Explained: Run Code During Deployments

Aleksi Partanen, with Teemu Multanen · English · October 2026 · approximately 22 minutes

The walkthrough demonstrates the actual plan canvas, action chaining, Variable Library parameters, YAML in Git, a Dev-to-Test deployment pipeline run, and an important selected-items pitfall. This is a direct match, not a generic deployment-pipelines video.

Open the original video on YouTube

Real YouTube preview plus an HTML fallback poster. Video playback loads only after you press Play. If embedding is restricted, use the direct link.

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.

ToolWhat it controlsWhen it is enough
Git integrationVersions and synchronizes compatible Fabric item definitions.When source control and ordinary Update from Git are sufficient.
Deployment pipelinePromotes 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 pipelineRuns 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.

Do you need a plan at all? If your items deploy successfully with Fabric’s default order and no run actions are necessary, adding a deployment plan adds complexity without solving a problem.

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.
  1. Open the source Fabric workspace, select New item → Deployment plan, name it (for example, RetailReleasePlan), and select Create.
  2. 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 for Retail_Warehouse.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. If your workspace uses Git integration, commit the plan alongside the definitions it references. Fabric serializes the plan into a versionable plan.yml in 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.

1. Deploy LakehouseDefinition appears in target
2. Run Hydrate notebookLoad raw data
3. Run Publish notebookProduce table and check SQL readiness
4. Deploy WarehouseView can reference table
5. ValidateQuery expected result and permissions

Illustrative sequence; step 5 is a validation practice, not an automatic plan action unless you configure a supported action.

Plan groupItem deployedConfigured job actionsDepends on
Retail_LakehouseLakehousePost: Load_Orders, then Prepare_OrdersNone
Retail_WarehouseWarehouseNone in this basic planRetail_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.

Data isn’t promoted with definitions. Deployment normally moves item definitions, not the Lakehouse table data. A notebook may read external sources, create or write a Delta table, and use compute; you must approve those writes, connections and costs. Never use a production source as the first test.

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.

Items included in this deployment operation
Test a possible action failure

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 typeJob type in the planTypical controlled use
NotebookExecuteCreate/validate a Delta table or run a readiness check.
Data pipelineExecuteRefresh a semantic model or orchestrate an approved process.
Dataflow Gen2ExecuteRun a supported data refresh, but not the same dataflow twice in one plan.
Copy jobExecuteStage approved data before dependent items deploy.
User data functionExecuteRun 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.

Important active-value-set behavior: if the plan selects a Variable Library value set, that selection is applied in the target workspace during deployment. You cannot override it in the deployment dialog; update the plan deliberately if the target is wrong. See Microsoft’s action rules.

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.

Illustrative plan.yml
$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_Lakehouse

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

Useful PR review questions

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?

What Git does not magically version

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)

  1. Create or open a deployment pipeline with separate Dev and Test stages, and confirm source/target workspace assignment and permissions.
  2. 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.
  3. 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.
  4. Check that the plan’s required actions and dependencies are resolvable in the target. Add a meaningful deployment note, then deploy.
  5. 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.

Deployment-pipeline REST request fragment
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.

Tool limitation: Microsoft currently states that 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.

Deployment Plan item is missing

Check the preview tenant setting, source capacity/region, and your workspace role. A Viewer can read a plan but can’t create/edit it.

Plan saved, but no items deployed

Check whether you selected the actual content. Attaching or selecting a plan alone does not necessarily add its referenced items to the release.

Cycle or duplicate name

Remove circular dependencies or rename conflicting groups/actions. The schema validates names and references when you save, including when edited through Git.

Action target not found

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.

Notebook succeeded but Warehouse view failed

Confirm the expected Delta table is queryable through the SQL analytics endpoint before the next group; action completion does not guarantee downstream readiness.

401/403 or wrong environment

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.

Safe recovery pattern: save the run’s UTC time and item IDs, confirm the target’s current state, repair the specific failing action, decide whether its write is idempotent, then rerun the intended deployment scope through the approved operation. Don’t retry blindly.

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 behaviorWhy it matters
One deployment plan per operation; one target workspace per runCoordinate multi-workspace promotions outside the plan.
One item per deployment groupUse explicit group dependencies; don’t model a group as a batch of unrelated items.
Up to 20 pre-actions and 20 post-actions per groupKeep release steps focused; large procedural plans are hard to test.
Actions run sequentially, not in parallelDo not assume parallel speedups or the same run times as independent workloads.
Plan size 1 MB; up to 1,000 groups; max 20 action parametersInvalid definitions are rejected during Save, Git pull or API updates.
No automatic rollback or downstream readiness waitImplement idempotence, readiness checks and incident recovery in the actions and release process.
Workspace identity, connections, Spark settings and gateway bindings are not deployed by plansPrepare 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.

Continue learning on UltimateInfoGuide

Scroll to Top