The Azure Code Samples are currently available in English
Microsoft Power BI PowerShell samples
This repo contains samples for calling the Power BI REST APIs using PowerShell. Each PowerShell script is self-documenting.
manageRefresh.ps1 - trigger scheduled refresh and check refresh history
rebindReport.ps1 - clone a report in the Power BI service and rebind it to a different dataset
copyWorkspace.ps1 - duplicate a workpsace in the Power BI service
bindtogateway.ps1 - Binds a dataset to a new gateway.
takeover-dataset.ps1 - Takes ownership of a dataset to your account.
Zero-Downtime-Capacity-Scale.ps1 - scale Power BI Embedded capacity resource, up or down, with no downtime (i.e. embedded content is available during the scaling process).