M365: archive mailbox, auto-enable, auto-expand
Short steps: turn on Online Archive, optionally auto-create it at quota, then turn on auto-expanding archive in Exchange Online PowerShell.
Read more