Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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...
  • GTS_ONE's avatar
    GTS_ONE
    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 

  • Anonymous's avatar
    Anonymous
    6 years ago

    You are correct - we discovered that trick as well and it worked for us.