Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.4 KB

samples-report.md

File metadata and controls

65 lines (45 loc) · 1.4 KB
uid title documentId
samples/report
Power BI CLI Samples for Power BI reports
682ed0b7-93d1-4f80-8a22-52fa60fcd7af

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
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
# Retrieve all workspace ids
$workspaces=pbicli workspace list --query "[*].{id:id}" --output tsv

# Loop thru all the available workspaces
foreach ($workspace in $workspaces) {
    pbicli report list --workspace $workspace
}

Feedback