Alias Request: Microsoft.Sql/servers/databases/securityAlertPolicies/disabledAlerts[*]
I am requesting that a wildcard alias ([*]) be created for SQL Databases SecurityAlertPolices that matches the SQL Database server's SecurityAlertPolices
The scenario we are looking to audit for is for any disabled threat protection types or specific ones being disabled.
- Resource Provider: Microsoft.Sql
- Resource Type: servers/databases/securityAlertPolicies
- Property: properties.disabledAlerts[*]
- Alias Name: Microsoft.Sql/servers/databases/securityAlertPolicies/disabledAlerts[*]
Example policy definition
{ "if": { "field": "type", "equals": "Microsoft.Sql/servers/databases" }, "then": { "effect": "[parameters('effect')]", "details": { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "existenceCondition": { "anyOf": [ { "field": "Microsoft.Sql/servers/databases/securityAlertPolicies/disabledAlerts[*]", "equals": "Sql_Injection" } ] } } } }
This alias has been added: give it a try.
That worked for me. Thank you very much.
From: Chris Stackhouse [email protected] Sent: Monday, April 8, 2019 5:59 PM To: Azure/azure-policy [email protected] Cc: Patrick Mahon [email protected]; Author [email protected] Subject: Re: [Azure/azure-policy] Alias Request: Microsoft.Sql/servers/databases/securityAlertPolicies/disabledAlerts[*] (#358)
This alias has been added: give it a try.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-policy%2Fissues%2F358%23issuecomment-481038163&data=02%7C01%7C%7C8e1b1da398ed45b0b7d108d6bc75d6d1%7Ccf36141cddd745a7b073111f66d0b30c%7C0%7C0%7C636903611635052345&sdata=DVplDXBe9LVusC7UoOblATbr5zrXhpDHfBmfwTHJOgg%3D&reserved=0, or mute the threadhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATmB-wT4gltb-SuOiAUgAl0aOG6cH3nvks5ve8nJgaJpZM4cY61a&data=02%7C01%7C%7C8e1b1da398ed45b0b7d108d6bc75d6d1%7Ccf36141cddd745a7b073111f66d0b30c%7C0%7C0%7C636903611635052345&sdata=bUTS%2Bt7SKBJDHX%2BBTKDPf1hT1qXOY%2BR%2B5xfW%2BVdaILw%3D&reserved=0.