This design establishes the Centralized Monitoring strategy.
Topology: A single Log Analytics Workspace in the Hub VNet (logically) collects logs from all Spokes.
+--------------+ +--------------------------+ +--------------+
| Spoke VM | | HUB VNet | | Admin |
| (Agent) | | (Monitoring) | | (Email) |
+------+-------+ +------------+-------------+ +------+-------+
| | |
v | (Private Link) |
+------+-------+ v v
| Azure | +------------+-------------+ +------+-------+
| Monitor |---------->| Log Analytics |---------->| Action |
| Agent | | Workspace | | Group |
+--------------+ +--------------------------+ +------+-------+
PRIMARY REGION (East US)
+-----------------------------------------------------------------------+
| HUB VNet: vnet-hub (10.0.0.0/16) |
| +-----------------------+ |
| | Log Analytics Wrkspc | |
| | (AMPLS Scope) | |
| +-----------|-----------+ |
| | |
| v (Peering) |
+---------------|-------------------------------------------------------+
|
+---------------|-------------------------------------------------------+
| SPOKE VNet: vnet-app-spoke (10.1.0.0/16) |
| +-----------------------+ |
| | VM | |
| | [AMA Extension] | |
| +-----------------------+ |
+-----------------------------------------------------------------------+
SECONDARY REGION (West US)
+-----------------------------------------------------------------------+
| DR STRATEGY |
| +-----------------------+ |
| | Workspace (DR) | |
| | (Separate) | |
| +-----------------------+ |
+-----------------------------------------------------------------------+
1. Collect: AMA on VM collects log.
2. Send: Sends to Workspace via Private Link.
3. Alert: Query runs.
4. Notify: Action Group sends email.
1. Create Resource Group: rg-design10-monitor. Region: East US.
1. Search: "Log Analytics workspaces" -> + Create.
2. Resource Group: rg-design10-monitor.
3. Name: law-hub-corp.
4. Region: East US.
5. Create.
1. Go to law-hub-corp.
2. Workspace Data Sources (left menu) -> Virtual machines.
3. Select a VM (e.g., vm-hr-01 from Design 2).
4. Click Connect.
5. *Note: This installs the agent and connects it to this workspace.*
1. Search: "Monitor" -> Alerts -> Action groups -> + Create.
2. Resource Group: rg-design10-monitor.
3. Name: ag-admins. Display name: Admins.
4. Notifications:
* Type: Email/SMS/Push/Voice.
* Name: EmailAdmins.
* Email: Enter your email.
5. Create.
1. Go to Monitor -> Alerts -> + Create -> Alert rule.
2. Scope: Select law-hub-corp (or a specific VM).
3. Condition:
* Signal name: Heartbeat.
* Logic: Count < 1 (VM is down/not sending heartbeat).
* Period: Last 5 minutes.
4. Actions:
* Select action group: ag-admins.
5. Details:
* Severity: Sev 1.
* Alert rule name: VM-Heartbeat-Missing.
6. Review + create -> Create.
1. Stop the VM.
2. Wait 5-10 minutes.
3. Check email for alert.