Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.