Automated budget actions
Azure budgets provide a mechanism to notify users as well as to trigger an action to prevent future costs by automating shutting down a VM, scaling in a VM scaleset, and reducing Request Units in Cosmos DB.
Automated budget actions are suitable for any of the following scenarios where turning off or reducing the number of VMs does not critically impact business continuity:
- Resources in dev/test subscriptions
- CI/CD virtual machine scale sets
- Resources in sandbox subscriptions
- Resources in R&D environments
There are various ways a budget trigger can kick off remediation using an Azure Monitor action group. We will use the automation runbook method, but you can use any one of these options:
- Automation runbook
- Azure function
- Logic app
- Secure webhook
- Webhook
To create an automated budget action using a runbook, do the following:
- Open the Microsoft Edge browser.
- Navigate to https://portal...