Unable to Connect to Azure Cache for Redis with VNET from App Service (Website)

James Oliver Pormento 6 Reputation points
2022-11-25T05:45:12.48+00:00

Actions Taken so far:

  1. Published App Service (Website)
  2. Created Virtual Network.
  3. Created Azure Cache for Redis with Virtual Network.
  4. Added App Service (Website) IP in Redis Firewall.
  5. Connect to Redis Cache from App Service (Website)
  6. Issue encountered connecting. Cannot reach Redis.
Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
260 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 15,686 Reputation points
    2022-12-02T05:29:41.817+00:00

    Hi @James Oliver Pormento ,

    Sorry about the inconvenience you are facing.

    As you have mentioned that your IP is allowed for firewall. I would recommend you to please ensure that the REDIS endpoint is whitelisted with the port number i.e. *.redis.cache.windows.net should be whitelisted for the port 6379 and port 6380 as per requirement.

    Please check : Go in > Azure Cache for Redis > Firefall (Settings) and add your machine's public IP (needs to be visible to Azure).
    266370-image.png

    Also in this case, you need to allow the firewall to port 10225 outbound. You can test it on a different network using Redis console on Azure to see if it's firewall-related.

    When using company network with firewall rule:

    266437-image.png

    When other network without firewall rule:

    266438-image.png

    Try to disconnect from company VPN and check again. Please let us know your result.

    0 comments No comments

Your answer

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