Hi everyone,
I'm looking to automate a task where I receive an email notification when a specific email mailbox reaches 80% of its storage capacity. After researching, it seems that using Azure Automation Accounts would be the way to go.
Firstly, I'm wondering whether I should use a private endpoint or a public one to interact with Exchange Online. Does it matter which one I choose?
Secondly, I'm unsure if the PowerShell script differs when running it within a runbook in Azure Automation Accounts. If it does, what adjustments do I need to make? I've come across mentions of using an App ID, but wouldn't Exchange already be part of the app registration within Azure?
Additionally, I'm not sure how to achieve my desired outcome of receiving an email notification when a specific email is 80% full. Currently, I'm able to connect to Exchange Online using:
Connect-ExchangeOnline -UserPrincipalName me@test.com
Get-MailboxStatistics -Identity no-reply@test.com | Select DisplayName, TotalItemSize
This displays the mailbox size, but I'm unsure how to email this information to myself.
Could someone please provide guidance on how to accomplish this? Thanks in advance for your help!