I have deployed an Azure function app, While using the command Connect-AzureAD in one of the function is throwing the error "You are using TLS version 1.0, 1.1 and/or 3DES cipher which are deprecated to improve the security posture of Azure AD"
Though the function App
- has minimum tls version of 1.2
- the .NET framework is 4.8.x
- the other services like storage account etc. associated with the
function app were using minimum TLS version of 1.2.
Function App details
Function runtime: Powershell
runtime version: 3.8.2.0
Any help regarding this issue would be helpful
3
Answers
From the Kudu console, you could check the existing SecurityProtocol:
From the documentation :
According to the documentation, you could try setting the security protocol to system default by adding this command at the beginning of your script:
Alternatively, it not working you could force using specific version:
Got this error as well, the weird part was that when running the command
[Net.ServicePointManager]::SecurityProtocol
it looked like I was usingTls12
.Error:
Got it working by first setting TLS to 1.3 like this:
This gave me an exception when trying to connect.
Then I used the command below to set it back to
Tls12
and then everything worked:Upgrading the
httpRuntime targetFramework
attribute in the web.config from 4.5.2 to 4.8 solved it for me.