Skip to content

jsphyg/powerbi_admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powerbi_admin

Utility script to trigger a Power BI dataset refresh via the Power BI REST API.

Usage

Set the following environment variables before running the script:

  • PBI_CLIENT_ID
  • PBI_CLIENT_SECRET
  • PBI_TENANT_ID
  • PBI_WORKSPACE_NAME
  • PBI_REPORT_NAME

Then execute:

pip install requests
python refresh_pbi.py

The script looks up the workspace and report to obtain the dataset ID and starts a refresh. Any HTTP errors will be printed to stderr.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages