@Sujeeth Velutarala I understand You're investigating inconsistent success/failure rates in your system, where approximately 120 out of 150 records succeed during processing. Your suspicion centers on TLS version mismatches and outdated frameworks across components like .NET 6.0 APIs, .NET 4.8 Azure Functions, and Service Bus using TLS 1.0.
Based on Your setup involves:
API calls via .NET 6.0 using TLS 1.2
Azure Functions on .NET 4.8 also using TLS 1.2
Azure Service Bus configured with TLS 1.0
This configuration introduces a TLS downgrade risk, especially when newer clients (.NET 6.0) interact with older services (Service Bus on TLS 1.0). According to Use-approved-version-of-TLS-for-Azure-Service-Bus, even if a TLS 1.2 connection is initiated, the Service Bus may fall back to TLS 1.0 if not explicitly configured to reject older versions. This fallback can cause intermittent failures, especially under load or when retry logic is involved.
To avoid these issues:
Upgrade TLS on Service Bus
Set the minimum TLS version to 1.2 using Azure CLI:
az servicebus namespace update --name <your-namespace> --resource-group <your-rg> --min-tls-version 1.2
This ensures all connections use TLS 1.2 or higher, eliminating fallback risks
Upgrade Azure Functions
Move from .NET 4.8 to .NET 6.0 or .NET 8.0 for better TLS handling and performance.
Enable Diagnostic Logging
Use Azure Monitor and Application Insights to trace TLS negotiation failures and identify patterns in failed requests.
Review Retry Policies
Ensure retry logic in your Azure Functions and Service Bus clients is configured to handle transient TLS errors gracefully.
I hope this resolve the issue, Kinldy reach out to me for any further assistance