Automate Azure CPU & Worker Alerts
Budget: $2 – $8 USD
I currently add CPU-usage and worker-percentage alerts by hand for both our Dev and Stg subscriptions. Because we already manage resources through PowerShell, I would like a fully scripted way to create and maintain those alerts—preferably in PowerShell, but I’m open to Azure CLI, Bicep, ARM templates or Terraform if you can show a clear advantage.
What matters is that, once your script runs, Azure Monitor holds two metric alerts for every target resource (CPU and Worker % respectively), with threshold, time-window, severity and action group values taken from parameters. Running the script again must update the alerts without duplicating them, so the process can live safely in a pipeline.
Please include all of the following in your delivery:
• A well-commented script or template file that targets both Dev and Stg environments
• A concise README describing required modules, authentication steps and example commands
• Proof of concept output (screenshot or CLI capture) that shows the alerts created and idempotent behaviour when re-run
I’ll consider the job complete when the script reliably produces and maintains those alerts in my Azure tenant with no manual steps remaining.
What matters is that, once your script runs, Azure Monitor holds two metric alerts for every target resource (CPU and Worker % respectively), with threshold, time-window, severity and action group values taken from parameters. Running the script again must update the alerts without duplicating them, so the process can live safely in a pipeline.
Please include all of the following in your delivery:
• A well-commented script or template file that targets both Dev and Stg environments
• A concise README describing required modules, authentication steps and example commands
• Proof of concept output (screenshot or CLI capture) that shows the alerts created and idempotent behaviour when re-run
I’ll consider the job complete when the script reliably produces and maintains those alerts in my Azure tenant with no manual steps remaining.
Related categories:
Cloud Computing
Azure
Scripting
Continuous Integration
Alerting
DevOps
Automation