Ensure all available audit records are collected to Unified Audit Log
This solution provides automation that ensures all available auditable events are enabled for all users in a tenant. By default, not all events are collected, and many record types need to be enabled for every new user.
This improves my previous automation script with several key changes:
My previous solution can be found here: https://nathanmcnulty.com/blog/2023/01/azure-automation-advanced-auditing/