Azure Redis Cache Private End Point - How to use in Spring Boot Java App

Sisodia, Deepak 21 Reputation points
2023-11-02T21:44:57.3233333+00:00

I have an Azure Redis Cache Private End Point and Passkwey, traffic is allowed from my AKS cluster to the Private End point via VNET/Subnet configuration. I am using the Private Endpoint, passkey, port 6380 in my configuration of Spring Boot App. But I encountered connection reset errors.

I read this article about PrivateEndpoint and this mentioned not to use PE for connection/configuration? Is that what is causing my connection failure

https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-private-link

Your application should connect to <cachename>.redis.cache.windows.net on port 6380. We recommend avoiding the use of <cachename>.privatelink.redis.cache.windows.net in configuration or connection string.

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
222 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,987 Reputation points Microsoft Employee
    2023-11-03T01:39:33.5+00:00

    Hi,@Sisodia, Deepak Thanks for posting your question in the Microsoft Q&A forum.

    Do you intend to connect to the cache via the public IP address, or over the private link, via the private link IP address?

    Please check that the DNS entry for your private link cache is resolving to the expected IP address. Possibly it may be resolving to the public IP still, but you could also have blocked traffic connecting via the public IP!

    Depending on how you created the private link, with public network access enabled or disabled, and how you use DNS, you may need to add a custom DNS entry, or configure your app to connect directly to the static IP of the private endpoint.
    Please see the Azure general documentation for private endpoints for more information on how DNS resolution works with private endpoints.

     

    Azure Private Endpoint DNS configuration | Microsoft Learn

    Regards

    Geetha