Azure functions SSL issue with Cosmos DB in .net 6 ?

Thirupathi Janga 1 Reputation point
2022-07-28T11:04:09.467+00:00

Hello Team, 

I am facing one issue the new .net version 6 and azure function v4. Could you please help me with this?

I have one azure function application which uses Cosmos DB.
Recently I have upgraded from .net core v3.0.1 to .net 6 and upgraded the azure function from v3 to v4.

So, in my application, while trying to connect to Cosmos DB, I am facing an issue saying "The SSL connection could not be established" and the inner exception as below "Received an unexpected EOF or 0 bytes from the transport stream." And to connect Cosmos Db we use VPN.

But when I downgrade my version of both azure function and .net core I am able to receive the response successfully.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,181 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,686 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,177 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JasonPan - MSFT 5,991 Reputation points Microsoft Vendor
    2022-07-29T08:18:13.227+00:00

    Hi @Thirupathi Janga

    I saw a similar github issue, hope it can help you. You can try to solve it by firewall settings.

    SSL connection error after upgrading to v4 #8168

    Best Regards
    Jason


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.