convert_legacy_to_pbir
Convert legacy .pbix or Layout JSON reports into a structured PBIR definition tree with GUID-named pages and visuals. Best-effort conversion; validate in Power BI Desktop.
Instructions
BEST-EFFORT explode a legacy Report/Layout (.pbix or a raw Layout JSON file) into a PBIR definition tree written to a target folder (default .Report next to the source): pages -> page.json, visualContainers -> visual.json, generating GUID names. Returns a pbirSessionId over the new tree. FLAG: best-effort - open in Power BI Desktop to validate/upgrade. pbir->legacy is not implemented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legacyPath | Yes | absolute path to the legacy .pbix (or a raw Report/Layout JSON file) | |
| targetFolder | No | target folder for the PBIR tree (optional; defaults to <name>.Report beside the source) |