def rule(event):
    if event.deep_get("operationName", default="") in [
        "MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/WRITE",
        "MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/DELETE",
        "MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/SECURITYRULES/WRITE",
        "MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/SECURITYRULES/DELETE",
        "MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/JOIN/ACTION",
        "MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/PROVIDERS/MICROSOFT.INSIGHTS/DIAGNOSTICSETTINGS/WRITE",
    ]:
        return True
    return False
