Share via

Even if the public access for the redis cache is enabled, we are getting unknown host exception for it

Tushar Tembhare 0 Reputation points Microsoft Employee
2026-02-12T12:27:25.7733333+00:00

Even if the public access for the redis cache is enabled, we are getting unknown host exception while connecting to it

Azure Cache for Redis
Azure Cache for Redis

An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.

{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-12T12:27:36.71+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If you are experiencing an unknown host exception while trying to connect to your Azure Cache for Redis instance, even with public access enabled, there are a few potential issues to consider:

    1. DNS Resolution: Ensure that your application is using the correct hostname format. You should connect to <cachename>.redis.cache.windows.net on the appropriate port (typically 6380 for SSL connections). Avoid using <cachename>.privatelink.redis.cache.windows.net in your configuration or connection string.
    2. Firewall Rules: Check if there are any firewall rules that might be blocking access. Ensure that your client IP address is added to the firewall rules for the Azure Redis cache.
    3. Public Network Access: Although public access is enabled, confirm that the public network access setting is correctly configured in the Azure portal. If you have a private endpoint configured, ensure that it is set to allow public network access as well.
    4. Network Configuration: Verify your network configuration to ensure that there are no issues preventing DNS resolution or connectivity to the Redis cache.
    5. Public IP Address Changes: If you have configured any networking resources to use the cache's public IP address, check whether the public IP address has changed, as this could lead to connectivity issues.

    Testing connectivity using tools like redis-cli or PSPING can also help diagnose the issue further.

    0 comments No comments

Your answer

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