Refresh Power BI Datasets
Trigger refreshes for one or more Power BI datasets with parallel execution and comprehensive status reporting.CLI Command
Options
Recommended SetupFor security and convenience, set your Power BI credentials as environment variables:
Dataset Refresh Examples
Refresh a single dataset
Refresh multiple datasets in parallel
Refresh with custom parameters
Sample Output
List Power BI Datasets
List all available Power BI datasets in a workspace with their IDs, names, and refresh status.CLI Command
Options
Usage Examples
Sample Output
Dataset Status Reference
Understanding the refresh capabilities and status indicators:Refresh States
- ✅ Refreshable: Dataset can be refreshed programmatically
- ❌ Not Refreshable: Dataset cannot be refreshed (e.g., streaming datasets, live connections)
Important Notes
- Parallel Execution: Multiple datasets refresh simultaneously for efficiency
- Authentication: Uses Azure AD service principal authentication
- Workspace Permissions: Service principal must have workspace access
- Refresh Limits: Subject to Power BI capacity and refresh quotas
- Timeout Handling: Individual dataset refreshes timeout after 60 seconds for triggering
- Dataset Identification: Use exact dataset names from your Power BI workspace
Environment Variable Reference
Troubleshooting
Authentication Errors
Authentication Errors
Ensure your Azure AD application has proper permissions:
Dataset Not Found
Dataset Not Found
Use the list command to find exact dataset names:
Insufficient Permissions
Insufficient Permissions
Service principal needs at least “Contributor” role in the Power BI workspace.
Non-Refreshable Datasets
Non-Refreshable Datasets
Some dataset types cannot be refreshed via API. Check the dataset type in Power BI service.
Workflow Integration
These Microsoft Power BI CLI commands are designed to integrate seamlessly into your data pipeline workflows. Common use cases include:- Post-dbt Refresh: Trigger Microsoft Power BI refreshes after dbt model runs complete
- Scheduled Data Updates: Automate regular refresh cycles for critical dashboards
- CI/CD Integration: Include Microsoft Power BI refreshes in your deployment pipelines
- Resource Discovery: Use list commands to programmatically discover available workbooks and data sources