Back to Admin Workflows

Build an Azure Monitor Alerting and Diagnostics Baseline with PowerShell

Enable diagnostic settings, configure Azure Monitor alerts and action groups, capture VM metrics, and tie in cost monitoring with one repeatable observability workflow.

It is surprisingly common to find Azure subscriptions running production workloads with almost no monitoring. Diagnostic settings are off, there are no alerts, and the first sign of trouble is a user complaint.

Setting up observability resource by resource through the portal is slow and inconsistent, so it gets skipped. The result is reactive operations and surprise cost overruns.

A repeatable PowerShell workflow lets you apply a consistent monitoring baseline to every subscription. PSForge helps you assemble it from ready-made Azure resource tasks.

The cost of no baseline

Without diagnostic settings, the logs and metrics you need during an incident simply do not exist — you cannot investigate what was never captured.

Without alerts and action groups, problems go unnoticed until they escalate. And without cost monitoring, budget overruns are discovered on the invoice rather than in time to act.

What an observability baseline looks like

A solid baseline enables diagnostic settings to route logs and metrics to a workspace, then configures Azure Monitor alerts for the conditions that matter, wired to an action group so the right people are notified.

It captures VM performance metrics for capacity and health, and ties in cost management with budget-based alerts so spend is monitored alongside performance.

Notify the right people Define action groups once and reuse them across alerts. Consistent routing means alerts reach the on-call owner instead of disappearing into a shared mailbox.

How PSForge helps

PSForge provides the Azure observability building blocks — diagnostic settings, monitor alerts, action groups, VM metrics, and cost management — so you can assemble a single repeatable baseline.

Generate the PowerShell, apply the baseline to each subscription, and re-run it whenever new workloads land.

  • Logs and metrics captured before you need them
  • Alerts routed to the right owners
  • Performance and capacity visibility
  • Cost monitored alongside health

Example observability baseline workflow

  1. Enable diagnostic settings on key resources
  2. Create an action group for alert routing
  3. Configure Azure Monitor alerts for critical conditions
  4. Capture VM performance metrics
  5. Configure Azure cost management with budget alerts

Example ongoing review

  1. Export a cost analysis report
  2. Confirm alerts fired and routed correctly during drills
  3. Extend the baseline to new workloads

Final thoughts

Observability is cheapest to set up before an incident, and a repeatable workflow ensures every subscription gets the same baseline.

Build it once in PSForge and apply the same monitoring baseline everywhere you run Azure.

Related guides