Forum Discussion
Anonymous
6 years agoNot applicable
Connection closed when using the Invoke-PowerBIRestMethod to refresh dataset
We have a PowerShell script that uses the "Invoke-PowerBIRestMethod" to force a dataset to refresh. The script has been working without issues for the past several months. For the last week and a h...
- 6 years ago
For me, looks like this was related to the new TLS requirment. Adding this to my PS script resolved it:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Anonymous6 years ago
You are correct - we discovered that trick as well and it worked for us.
v-xicai
6 years agoCommunity Support
Hi Anonymous ,
You may check if it is the issue for connection in Power BI Support , and refer to the workaround in it currently. If you still have this issue for Power BI, you'd better create a support ticket in Power BI Support , Scroll down and click "CREATE SUPPORT TICKET", or go to Issue forum to get further help.
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.