Search Results for

    Show / Hide Table of Contents

    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

    • Bash
    • PowerShell
    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

    • Bash
    • PowerShell
    # 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

    • Improve this Doc
    In This Article
    Back to top Generated by DocFX