You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This can be used as a Custom Detection Rule in Defender to detect Azure Lock activity and alert off of that. It also excludes Azure Backup Service because a lock is applied when Azure Backup for Azure File Shares is configured
AzureActivity
| where OperationNameValue in ("MICROSOFT.AUTHORIZATION/LOCKS/WRITE", "MICROSOFT.AUTHORIZATION/LOCKS/DELETE")
| where ActivityStatusValue == "Success"
| where not(Properties has "AzureBackupProtectionLock") // Exclusion Filter: Stops Azure Backup Service from triggering the rule