{
	"if": {
		"field": "type",
		"equals": "Microsoft.SQL/servers"
	},
	"then": {
		"effect": "auditIfNotExists",
		"details": {
			"type": "Microsoft.SQL/servers/securityAlertPolicies",
			"name": "default",
			"existenceCondition": {
				"allOf": [
					{
						"field": "Microsoft.Sql/securityAlertPolicies.state",
						"equals": "[parameters('setting')]"
					}
				]
			}
		}
	}
}