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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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