publish_to_service
Publish .pbix or PBIP folders to Power BI Service via Import or Fabric APIs. Set workspace, conflict policy, and display name for deployment.
Instructions
Publish a built artifact to the Power BI Service: a .pbix path goes through the Import API (nameConflict CreateOrOverwrite by default); a PBIP folder (the tree generate_pbip/scaffold emit) is published at definition level via the Fabric items API - SemanticModel first, then Report, each created or updated in place. Needs an AAD access token with the Power BI scopes (accessToken param or DAXOPS_PBI_TOKEN); never echoed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | path to a .pbix file OR a PBIP folder (the project root, or its <name>.SemanticModel) | |
| accessToken | No | AAD access token with Power BI scopes; omit to use DAXOPS_PBI_TOKEN | |
| workspaceId | Yes | target workspace (group) id | |
| nameConflict | No | pbix import conflict policy: CreateOrOverwrite (default), Ignore, Abort or Overwrite | CreateOrOverwrite |
| datasetDisplayName | No | dataset/item display name; defaults from the file/folder name |