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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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