Azure / Azure/azure-cli

Normalize param names and ordering in Telemetry

Open
#10,170 2 comments 0 reactions 1 assignee Assigned to @evelyn-ys View on GitHub
feature-request OKR3.4 Candidate telemetry
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

In the core/commands/__init__.py, when loading values into self.cli_ctx.data['safe_params'], we should normalize the names and order.
* Expand short names into the full name: e.g. -n becomes --name
* Order params consistency: e.g. (alpha ordering) --resource-group, --name

This enables:
* More accurate telemetry
* Ability to translate command+paramset combos to REST endpoint via ARM telemetry (Arun ask)
* Smarter Aladdin models as it gets a more accurate signal

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.