'Azure Policy - Find Ressources without Tags

Is it possible to define a Policy to find Resources 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 can not find this scenario.

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



Solution 1:[1]

Based on this MS DOC:-

While creating a policy, you may prevent resources from being deployed to your subscription that don't match your organization's tags. Instead of manually adding tags or searching for non-compliant resources, you construct a policy that applies the required tags automatically during deployment.

For more information please refer this SO THREAD|Azure Policy Assignment - Exclude Resource Type(s)

Solution 2:[2]

Please try this definition:

{
    "mode": "Indexed",
    "policyRule": {
        "if": {
            "value": "[less(length(field('tags')), 1)]",
            "equals": "true"
        },
        "then": {
            "effect": "audit"
        }
    }
}

Source: https://docs.microsoft.com/en-us/azure/governance/policy/concepts/definition-structure#value-examples

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AjayKumarGhose-MT
Solution 2 AndreiMS