Feb 26 2019 02:05 AM - edited Feb 26 2019 02:06 AM
I wanted to share a script i use on a daily basis that i think some of you have use of.
This script retrieves all resources in a resourcegroup, sums up the values of each resource, and emails the total cost via gmail SMTP.
What i get in the mail once a day:
Link to my blog with the complete script:
http://paegelow.se/azure-automation-runbook-retrieve-total-cost-of-resourcegroup-or-subscription/
Required modules:
Guide on how to create an azure runbook:
https://docs.microsoft.com/en-us/azure/automation/automation-quickstart-create-runbook