Hello @m-hon ,
Apologies for the delay in response.
I understand that you would like to know which TLS version Azure CLI uses.
I discussed this with the Azure CLI Product Group team and below is the information they provided:
Azure CLI internally uses Python 3.11, requests library and OpenSSL to make HTTP requests. It automatically chooses the highest TLS version supported by the server.
According to https://docs.python.org/3/library/ssl.html#tls-1-3, Python 3.7 started to support TLS 1.3. And according to https://docs.python.org/3/library/ssl.html#ssl.SSLContext.minimum_version, we can check the minimum version of TLS used by Python:
>>> ssl.create_default_context().minimum_version
<TLSVersion.TLSv1_2: 771>
This means Azure CLI will use the higher one of TLS 1.2 or 1.3 when it is possible.
Kindly let us know if the above helps or you need further assistance on this issue.
Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.