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).
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.