Azure / Azure/azure-cli

Option to enable virtualization of perf counters

Open
#24,697 3 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Azure CLI Team Compute customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 10h
Merged PRs (30d)
64

Description

**Related command**
`az vm create` + `az vm update`

**Is your feature request related to a problem? Please describe.**
While there is a tutorial [how to do that with Hyper-V](https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/performance-monitoring-hardware) using `Set-VMProcessor -Perfmon` there is no such option with machines maintained via azure-cli.

**Describe the solution you'd like**
An option `--enable-perfmon` similar to Hyper-V's configuration via Powershell mentioned above.

**Describe alternatives you've considered**
Switch from Azure as perf counters are virtualized out of the box with other providers and can be enabled when configuring virtual machines on own hardware.

**Additional context**
Useful for `perf record`, `perf stat`, `vtune`, `perfgrind`, `rr` and a bunch of other developer software.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.