Azure Capacity Watcher (for Azure Automation) : Fetch Azure Capacity informations (Compute, Network and Storage quotas) and send a mail report via Office 365 mail account for resource capacity above threshold.
Azure Capacity Watcher is an Azure Automation solution (PowerShell runbook) that help you to fetch Azure Capacity informations (Compute, Network and Storage quotas) and send a mail report via Office 365 mail account for resource capacity above threshold. See Prerequistes below to use this solution.
To sum up, you can use this runbook to:
- List all Azure resource quota in the Automation "console" output
- Send mail report (via an Office 365 mail account) for Azure resource quota which reach threshold
- Or both!
- An Azure Automation Account with:
- Some Automation Modules : Az.Accounts, Az.Compute, Az.Network and Az.Storage
- An Automation Connection (type = AzureServicePrincipal) : refering to your Azure Service Principal (Service Principal with certificate credential and reader access to your Azure resources you want to watch. eg. Reader)
- An Automation Certificate (used by the Service Principal and refered by the Azure Automation Connection)
- (optional) An Automation Schedule : if you want to send report reccurently (e.g. monthly)
- (optional) An Office 365 mail account credential to use as the account that send the mail notification (if you want to enable mail notification)
Don't forget to apply all prerequisites prior deploying this runbook!
Two methods of deployment:
- By clicking the button below (fastest method)
- By browsing Azure Automation Runbook Gallery
Click on the button below, and select your existing Azure Automation account where you want to deploy the runbook.
NOTE : there's no need to fill the "Subscription name", "Resource group" and "Location" input boxes on the second screen as your Automation account is already selected.
Open your Azure Automation account, and import AzureCapacityWatcher from the Runbooks Gallery (Source : PowerShellGallery ).