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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
KEMKEM
Regular Visitor

How to get transactions by Power Bi Powershell module "MicrosoftPowerBIMgmt" programmatically?

I have a PowerShell script where I get all the transactions by using http request below. 

 

'https://api.powerbi.com/v1.0/myorg/groups/' + $DataflowAPI.workspaceId[$i] + '/dataflows/' + $DataflowAPI.objectId[$i] + '/transactions
 
How can I get all the transactions by using the PowerShell module "MicrosoftPowerBIMgmt"
 
At this moment I have found only this part:
 
Connect-PowerBIServiceAccount
 
$results = Get-PowerBIDataflow -Scope Organization
2 REPLIES 2
lbendlin
Super User
Super User

You can run standard REST API calls from PowerShell instead of using the PowerBIManagement convenience functions.

 

Dataflows - Get Dataflow Transactions - REST API (Power BI Power BI REST APIs) | Microsoft Learn

@lbendlin thank you, as you see in my post I already using the Power Bi Rest Api as you described. I only hate the ugly refresh token which is needed for the authentication. I am looking for a solution where I can easy do the authentication with for example a service principal, managed identity or Azure app registration. The modern way. I know that is possible with Connect-PowerBIServiceAccount.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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