Azure Policy

ahmed daham 21 Reputation points
2022-06-08T17:05:39.237+00:00

Hello guy's I'm currently creating a policy that audits firewall of cache redis and the problem is that the Microsoft. Cache/redis/firewallrules variable is not accepted, although I need that variable to create my audit policy

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
232 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
833 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 21,246 Reputation points
    2022-06-14T09:02:39.81+00:00

    Hi @ahmed daham ,

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Apologies for the delayed response. I understand that you are trying to create a Policy that audits the firewall of Azure Cache for Redis and that you are unable to use the Microsoft. Cache/redis/firewallrules Field in it.

    Note that the actual field name of resource and corresponding property alias (which is used in Azure policy definition) can be different. Please refer to this link for more details - Aliases in Azure Policy Definition. Considering that, you should be using the following available property aliases, depending on the requirement (this is case sensitive).
    211272-image.png

    There are a number of ways to get the correct property alias for resource and 2 of them are mentioned here.
    One of the other ways is to get it from Azure Portal when defining the Policy as shown in the screenshot above (use ctrl+space to get the hint loaded).

    Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful