How to connect my container app with "Azure cache for Redis Enterprise"

Desmond Sindatry 26 Reputation points
2024-04-24T01:17:29.63+00:00

I successfully deployed my "Azure cache for redis enterprise" cluster using private link. The Private DNs zones are configured correctly and the endpoints are reachable.

Now we deployed container apps with 2 containers. Both are configured in the same subscription and vnet but on a different subnet, but they are in the same vpc. (Could not deploy on the same subnet)

The container is not able to connect to redis cluster. I beleive that resources in the different subnets should be able to communicate with each other as they are in same vnet

2024-04-24T00:39:04.665722499Z {"level":"error","version":1,"source":"sas-detection","messageKey":"detection-log-icu.no.redis.log","properties":{"caller":"sdsci/main.go:128"},"timeStamp":"2024-04-24T00:39:04.665624+00:00","message":"Failed to ping Redis server."}

acc@sfd--35cil5z-88f7d9bb8-5sfn4 acc-detection]$ curl -v cache-ns.eastus.redisenterprise.cache.azure.net:10000

* Rebuilt URL to: cache-ns.eastus.redisenterprise.cache.azure.net:10000/

* Trying 10.225.218.80...

* TCP_NODELAY set

[acc@sfd--35cil5z-88f7d9bb8-5sfn4 acc-detection]$ hostname -i

10.225.136.22

Both Ips are in the private network.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,160 questions
Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
216 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
271 questions
{count} votes