Open mthierba opened 2 years ago
@luclleal Have you used this method for multiple reports and refresh schedules? If so, have you designed a set of reusable schedules and how would one go about pulling those for each report?
Perhaps a quick example:
Could I define each desired schedule in some location as well as a reference to those schedules for each report separately and avoid having a PowerShell job for each and the manual effort to maintain it?
It would be amazing if we could define the reports and schedules in code and apply changes upon a merge to potentially many reports at once, but I am not experienced with pbi-tools and PowerShell enough to know how feasible that is or how to do so.
@turnersale We've used similar method in order to define different configurations for each report, but in order to do this you would have to use a for each loop on power shell and also have some fixed parameters for each report (e.g: Workspace name and report names defined on the start of the code) so I would say that what you want to do is perfectly possible
@luclleal Thanks for the info! I figured PowerShell loops would be reasonable. Time to do some testing! :)
Hey, this topic is also of interest for me and my team. Is there any planning regarding when this feature is going to be implemented?
Can't provide any timelines at the moment.
@TheBigJones I have a workaround using PowerShell that needs a bit more tweaking for performance but allows us to use a simple json structure to define the refresh schedule (like seen in body of @luclleal's comment above) for each report as an array. That schedule is read into the script and used to update the schedule in the Service. I also added a process to ensure our service principal that deploys the reports/datasets can assume ownership and patch the connections. This way the BI Dev doesn't have to assume ownership to ensure the refreshes work.
If you are interested in that implementation I could share a cleaned up version of it
Hello Mathias! As we spoke before, I would like to suggest to expose "Workspace ID" and "Dataset ID" during execution, since these two informations are availabe only after deploy and are already resolved by pbi-tools. Follows our actual approach to set the refreshs (using a job with Power Shell inline after Deploy job to re-resolve this ID's and make the Update Refresh Schedule api call):