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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors