PowerShell sample scripts

Several self-documenting sample PowerShell scripts that leverage the Power BI REST API are available at the following GitHub repository https://github.com/Azure-Samples/powerbi-powershell.

As shown in the following screenshot, this repository includes PowerShell scripts (.ps1 files) for the refresh of a dataset, the rebinding of a report (to a dataset), and other common use cases:

Power BI REST API samples

In addition to Windows PowerShell or the PowerShell Integrated Scripting Environment (ISE), Azure PowerShell cmdlets must also be installed to execute the REST API scripts. The following links can be used to install ...

Get Mastering Microsoft Power BI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.