Is it possible to get Azure Host Performance counters (CPU %, Disk Op/s, Disk B and Net) using powershell cmdlets from all vms inside a subscription? I can't find any way to do so but Im tired of collecting the info manually from 116 VMs...
0
votes
1 Answers
0
votes
I'd suggest Log Analytics (OMS) for the job instead. It collects performance counters from all VMs automatically and there's little work to do to put together some nice dashboards or use the data as you please.
https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-data-sources-performance-counters
If you still want to use PowerShell, create a runbook script in Azure Automation to loop over all VMs, connect to a remote PSSession and execute your collect script while you offload the data to a blob storage.