Forum Discussion
PowerShell Rest API /RefreshSchedule Patch doesn't work
Hi zuheirashraf17 ,
Do you have permissions for read and write?
My understanding is that in order for the API to work it actually has to write permissions with the dataset.
Before you run this command, make sure you log in using Connect-PowerBIServiceAccount.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- zuheirashraf175 years agoAdvocate II
Hello Liang/V-lianl-msft , appreciate your reply.
As for the permission, I believe this should be enough right?
As for Connect-PowerBIServiceAccount, it was able to connect just fine, please see my script. And the service account has admin access to the workspace too. In fact it was able to take over the dataset, but fail when trying to update/disable the refresh schedule.