Check the TLS version on the function app/machines.
Receiving "The SSL connection could not be established, see inner exception." on all Azure PowerShell cmdlets.
Jason Yoder
0
Reputation points
I am receiving the following error, regardless of the Azure PowerShell cmdlet that I am using.
Again, it is for all azure cmdlets that I am receiving this SSL error message. My TLS is set to 1.2.
About 1 out of every 3 Azure PowerShell cmdlets return this error. The rest of the time the cmdlet completes successfully.
Thank you in advance,
Jason
Get-AzResourceProvider:
Line |
3 | … rceTypes = (Get-AzResourceProvider -ProviderNamespace $ResourceProvid …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The SSL connection could not be established, see inner exception.
```PS C:\Users\JASON\Documents\PowerShell\Modules\AIImages> $error[0]| Select *
PSMessageDetails :
Exception : System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource