{
    "properties": {
        "displayName": "Audit resource location matches resource group location",
        "policyType": "BuiltIn",
        "mode": "Indexed",
        "description": "Audit that the resource location matches its resource group location",
        "metadata": {
            "version": "2.0.0",
            "category": "General"
        },
        "policyRule": {
            "if": {
                "allOf": [
                    {
                        "field": "location",
                        "notEquals": "[resourcegroup().location]"
                    },
                    {
                        "field": "location",
                        "notEquals": "global"
                    }
                ]
            },
            "then": {
                "effect": "audit"
            }
        }
    },
    "id": "/providers/Microsoft.Authorization/policyDefinitions/0a914e76-4921-4c19-b460-a2d36003525a",
    "name": "0a914e76-4921-4c19-b460-a2d36003525a"
}