Use az cli to Query VM Remaining CPU Credits
When working with Azure Virtual Machines (VMs), monitoring
performance metrics is essential for ensuring optimal operation. A
common scenario involves tracking the CPU Credits Remaining
for a B-series burstable VM instance.
Typically, we use az vm monitor metrics tail
to get the
CPU Credits Remaining
metric: