Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
powerbi_jenhen
Resolver II
Resolver II

Power BI API Selective Deploy Dataflow via Service Principal

Hi,

 

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?

 

I'm using the same code as for reports and datasets etc but obviously tweeked 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
4 REPLIES 4
powerbi_jenhen
Resolver II
Resolver II

Can anyone advise? This still seems to be an issue??????

 

Thanks.

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

Thanks Ibendlin,

 

Are you also of the opinion that this should be a working API call? There's nothing obvious that I'm doing wrong?

 

Thanks.

The whole CI/CD space is still in its infancy, might as well influence it according to how you think it should work.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.