@John Fak Thanks for posting your question on Microsoft Q&A forum.
Disabling TLS seems to resolve the connection issue, which means that the problem is related to the TLS setup.
Ensure that you are using a supported version of TLS. Azure Cache for Redis supports TLS 1.2 and 1.3, and starting November 01, 2024, TLS 1.0 and 1.1 will no longer be supported
https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-tls-configuration
https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-remove-tls-10-11
Regards
Geetha