Hi, AndyWalsh-1616 Welcome to the Microsoft Q&A forum, thanks for posting your query,
Thanks, @Alberto Morillo for your continued support and for providing the query.
You can use -PredicateExpression to filter audit events. server_principal_name is the column name for logins in SQL audit, something like below should work. I have not tested the below statement but I tested the predicate expression to exclude select statements from the audit.
Set-AzSqlServerAudit -ResourceGroupName "test-rg" -ServerName "sravstestdb" -PredicateExpression "server_prinicipal_name <> 'dba'"
Exclude select statements from auditing (something that I tested )
Set-AzSqlServerAudit -ResourceGroupName "srsaluru-rg-india" -ServerName "sravstestdb" -PredicateExpression "statement not like '[select ]%'"
Please let us know if this helps.
Regards
Geetha