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.
GTS_ONE
6 years agoAdvocate II
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
Anonymous
6 years agoNot applicable
You are correct - we discovered that trick as well and it worked for us.