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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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