以下是我的自定义脚本扩展中的代码
$AllProtocols = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
Invoke-WebRequest -Uri https://aka.ms/downloadazcopy-v10-windows -OutFile $env:C:\temp\azcopy.zip
Run Code Online (Sandbox Code Playgroud)
当我运行自定义脚本扩展时,出现以下错误
"Invoke-WebRequest : The underlying connection was closed: An unexpected error
Run Code Online (Sandbox Code Playgroud)
关于如何解决它有任何帮助吗?