skip to Main Content

I want to deny all the public traffic from accessing my cache redis, I could not find any proper solution, any help will be appriciated.

2

Answers


  1. You can make use of Private Endpoint to do that. Instructions specific to securing an Azure Cache for Redis so that it is not accessible publicly can be found here: https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-private-link.

    Login or Signup to reply.
  2. As the question is about denying the public traffic, I would suggest you to do it via Azure built in policy.

    Azure Cache for Redis should disable public network access denies the public endpoint access. Assign this at the appropriate level in your tenant.

    Here is the snippet from above policy definition::

    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Cache/Redis"
          },
          {
            "field": "Microsoft.Cache/Redis/publicNetworkAccess",
            "notEquals": "Disabled"
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search