check suggestions from similar issue: Azure File Copy TLS1.2.
Azcopy V7 : TLS version error
I am using AZcopy v7 for Table storage backup and is showing me following error while trying to connect with my azure storage account :
"[ERROR] Failed to export Azure table. Detailed error: Failed to download entities from table. The remote server returned an error: (400) Bad Request.
The TLS version of the connection is not permitted on this storage account."
TLS version enabled in my Storage account is TLS1.2.
How can I enable AZcopy v7 to use TLS v1.2 for making connections?
1 additional answer
Sort by: Most helpful
-
TickooSneha-8391 17 Reputation points
2022-09-16T05:42:46.337+00:00 Azcopy v7 was built using .Net 4.5 which uses tls 1 by default.
to force azcopy to run on tls1.2 , we could add an AzCopy.exe.config with following setting<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=false"/>
</runtime>
</configuration>It resolved the issue for me.
i did not have permission to edit registry settings as my azopy runs inside a function app