Private Link connect to Redis Cache

Visan, Nicolae 36 Reputation points
2023-03-23T13:54:20.3766667+00:00

Hello,
we are currently trying to setup a redis instance connected with a private link as described here https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-private-link
Our problem here is, that after enabling the private link + disabling public access to the redis instance, the hostname of the instance my-instance.redis.cache.windows.net  does still map to a public IP and not the private ip of the private link.
As by the FAQ entry, the "privatelink.redis.cache.windows.net" zone should not be used for redis, so we were expecting that the hostname would switch to returning the internal IP.
Could you let us know how the redis host must be configured to be accessible via normal hostname with the private ip?

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
213 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
461 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 13,075 Reputation points
    2023-03-23T19:47:13.5066667+00:00

    To access the Redis instance via the normal hostname with the private IP, you'll need to add a custom DNS entry that maps the Redis instance hostname to the private IP address of the Private Endpoint.

    1. Get the private IP address of the Private Endpoint.
    2. Create a DNS A record mapping my-instance.redis.cache.windows.net to the private IP.

    This will ensure that when you use the hostname, it resolves to the private IP within your virtual network.

    0 comments No comments