{
    "properties": {
        "displayName": "Resource name contains resource group name",
        "mode": "Indexed",
        "description": "Require resources to contain the resource group's name",
        "policyRule": {
            "if": {
                "field": "name",
                "notContains": "[resourceGroup().name]"
            },
            "then": {
                "effect": "deny"
            }
        }
    }
}
