Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am currently successfully deploying Power BI reports, datasets, dashboards and paginated reports via the Power BI API Selective Deploy end points within a DevOps pipeline, I authenticate via Service Principal. However, when I attempt to deploy a dataflow I receive "ALM_InvalidRequest_ServicePrincipalNotSupported", is this correct? a service principal can deploy all artefact types except dataflows? My service principal app has the correct API permission: Dataflow.ReadWrite.All
I'm using the same code for reports and datasets etc but obviously tweaked for dataflows as microsoft details:
$body = @{
sourceStageOrder = $stageOrder
dataflows = @(
@{sourceId = $dataflowArtifactId }
)
options = @{
allowCreateArtifact = $TRUE
allowOverwriteArtifact = $TRUE
}
} | ConvertTo-Json
$deployResult = Invoke-PowerBIRestMethod -Url $url -Method Post -Body $body | ConvertFrom-Json
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.