Articles → MICROSOFT AZURE → Computer Groups In Azure Log Analytics
Computer Groups In Azure Log Analytics
Purpose
Steps
- Create 3 virtual machines
- Create a log analytic workspace
- Create and save the query
- Execute the query using computer groups
Create 3 Virtual Machines
Click to Enlarge
Create A Log Analytic Workspace
Create And Save The Query
Heartbeat
| where Computer == "vm1" or Computer == "vm2"
| distinct Computer
Click to Enlarge
Field | Value |
---|
Function name | vm12CG (or any custom name) |
Legacy category | virtualmachines |
Save as computer group | checked |
Click to Enlarge
Click to Enlarge
Execute The Query Using Computer Groups
Heartbeat
| where Computer in (vm12CG)
Click to Enlarge