How can I automate monthly billing emails for my Azure subscriptions?
Asked by
SunnyTraveler92
I'm trying to find a way to have Azure automatically email me the costs for all my subscriptions each month. I can currently view all subscriptions and their costs on the cost analysis page and can download that information, but I'm looking for a more automated solution. I noticed there's an export feature to storage, but I'd prefer to receive it via email. Is there an easy way to set this up?
Answers
You could try setting up a Logic App linked to your storage account that sends you an email with the exported billing data. It's a pretty handy way to automate it!
Reply to this answer
I've got a PowerShell script running as a runbook in Azure Automation that does exactly this. Itโs tied to a service principal with the right permissions on the subscriptions. This way, when new subscriptions are added at the management group level, they're automatically included. At the end of each month, it sends out the cost and usage for each subscription, which is great for a quick overview, but for alerts on over-budget usage, I recommend setting up budgets.
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousBee43: That sounds like a solid plan! Iโll check out how runbooks work.