Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Patrick Bolduc
It appears your legacy Function App is having trouble because it doesn’t meet the newer TLS security requirements. The error suggests that TLS 1.2 or higher is now needed for connectivity.
Microsoft is ending support for TLS 1.0 and 1.1 on Azure services, requiring TLS 1.2 by August 31, 2025. Although CosmosDB may still allow TLS 1.0, Azure changes could be restricting older protocol connections, which might explain your error.
Since you can't update the code, it’s important that your app supports TLS 1.2. In .NET Framework, this typically means setting ServicePointManager.SecurityProtocol accordingly.
If code changes aren’t possible,
Try updating your DocumentDB SDK to a version that uses TLS 1.2 or higher, as older versions may not work with current security policies.
Check your Azure Function App’s "TLS/SSL settings" to ensure everything is current, as compliance is necessary even if these settings mainly affect incoming requests.
To help further, could you share:
- Which .NET Framework version your Function App uses?
- Whether you can review the codebase for potential TLS configuration workarounds?
Retirement of TLS 1.0 and TLS 1.1 by August 31st 2025
TLS 1.2 Enforcement on Cosmos DB
Transport Layer Security (TLS) best practices with the .NET Framework
Setting minimal TLS version for SQL database
Let me know if you have any further assistances needed.