Power BI CLI Samples for Power BI reports
The following table includes links to bash and PowerShell scripts built using the Power BI CLI.
Script | Description |
---|---|
List reports | List reports |
List all reports | List all reports |
List reports
List reports the user/service principal has access to for a certain workspace
pbicli report list --workspace Demos
List all reports
List all reports from all workspaces the user/service principal has access to
# Retrieve all workspace ids
workspaces=`pbicli workspace list --query "[*].{id:id}" --output tsv`
# Loop thru all the available workspaces
for workspace in $workspaces
do
pbicli report list --workspace $workspace
done