apply_plan
Execute an approved Power BI/Fabric change plan with dry-run simulation, per-step confirmation, and automatic rollback on step failure.
Instructions
Execute an approved plan with automatic rollback on step failure.
Use this tool when the user asks to:
Execute or apply an approved plan created by plan_change.
Run plan steps in dry-run mode before modifying actual files.
Approve each step individually before it runs.
Args: plan_id: ID of the plan previously created by plan_change. dry_run: If True (DEFAULT), simulate execution without modifying files or cloud resources. Pass dry_run=False explicitly to apply for real. confirm_each_step: If True, ask the user to approve every step before it runs. Declining (or having no interactive client) stops execution and reports the remaining steps as not run.
Returns: ApplyResult with execution status, executed steps, and rollback details if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| plan_id | Yes | ||
| confirm_each_step | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | success | |
| failed_step | No | ||
| executed_steps | No | ||
| rollback_handle | No | ||
| artifacts_changed | No | ||
| rollback_steps_executed | No |