Azure Policy - Find Ressources without Tags

Philipp Gerber 251 Reputation points
2022-04-19T13:17:14.897+00:00

Hello Community,

it is possible to define a Policy to find Ressources without Tags?

I would like to define this Policy to list all of Items at the "Compliance" Point at the Policy Tab.

I have looked at the Definitions but i cant find this scenario.

Did someone build an Policy about this scenario?
Or can someone help me to build this Policy?

Thanks a lot.

Regards,
Phil

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
799 questions
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 17,726 Reputation points
    2022-04-20T04:55:53.507+00:00

    @PhilippGerber-6516 Welcome to Microsoft Q & A Community Forum. Here is a sample policy to list all the resources that have no tags.

    {
      "properties": {
        "displayName": "Checking existence of tags",
        "policyType": "Custom",
        "mode": "All",
        "parameters": {},
        "policyRule": {
          "if": {
            "field": "tags",
            "exists": "false"
          },
          "then": {
            "effect": "audit"
          }
        }
      }
    }
    

    Please 'Accept as answer' or Upvote if the given solution is helpful, so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful