Skip to content
Azure automation script to alert you on Slack when a resource cost runs away
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
README.md
azure-cost.ps1

README.md

azure-cost

This is a quick-and-dirty Powershell script to keep track of your accumulated Azure spend. If any one resource consumes more than a certain threshold of your total bill, that could indicate a runaway instance, like a VM or database that you forgot to turn off when you were done using it.

When one or more services exceed the defined threshold, the script will invoke a Slack webhook to notify you or your team in your Slack channel or choice.

You can set the threshold percentage as a parameter, or use the default 50%.

You'll need to add the webhook URL to your custom Slack integration to make this script work.

The Powershell script is designed to run as an Azure Automation runbook on a schedule.

You can’t perform that action at this time.