Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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.