{ "properties": { "displayName": "Allowed resource types", "policyType": "BuiltIn", "mode": "Indexed", "description": "This policy enables you to specify the resource types that your organization can deploy. Only resource types that support 'tags' and 'location' will be affected by this policy. To restrict all resources please duplicate this policy and change the 'mode' to 'All'.", "metadata": { "version": "1.1.0", "category": "General" }, "version": "1.1.0", "parameters": { "listOfResourceTypesAllowed": { "type": "Array", "metadata": { "description": "The list of resource types that can be deployed.", "displayName": "Allowed resource types", "strongType": "resourceTypes" } }, "effect": { "type": "String", "defaultValue": "Deny", "allowedValues": [ "Audit", "Deny", "Disabled" ], "metadata": { "displayName": "Effect", "description": "Enable or disable the execution of the policy" } } }, "policyRule": { "if": { "not": { "field": "type", "in": "[parameters('listOfResourceTypesAllowed')]" } }, "then": { "effect": "[parameters('effect')]" } }, "versions": [ "1.1.0", "1.0.0" ] }, "id": "/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c", "name": "a08ec900-254a-4555-9bf5-e42af04b5c5c" }