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
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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