Skip to content

Update az cognitiveservices argument shortcuts #34476

Open

Description

There is a mismatch in how the shortcut flag -n is defined for Cognitive Services cost control commands compared to account commands. Better to be consistent within the az cognitiveservices command group and fix the cost control shortcuts.

The suggestion is to update the argument shortcuts for as proposed below.

Command Current arguments Suggested argument changes
az cognitiveservices account create --name, -n (for account name) No change
az cognitiveservices account project create --name, -n (for account name)
--project-name
Add -p for --project-name.
az cognitiveservices account costcontrol create --account-name
--cost-control-name, --name, -n
Make --name, -n the shortcut for --account-name. Add -c as shortcut for --cost-control-name.
az cognitiveservices account project costcontrol create --account-name
--cost-control-name, --name, -n
--project-name
Make --name, -n the shortcut for --account-name. Add -c for --cost-control-name and -p for --project-name.

And similarly for other cost control operations (update, delete, list, show)

Activity

  1. added
    Auto-Assign
    Cognitive Services
    Service Attention
    on Nov 20, 2026
  2. yonzhan commented on Nov 22, 2026

    @yonzhan
    Collaborator

    route to service team

  3. dargilco commented on Nov 23, 2026

    @dargilco
    MemberAuthor

    PR for fix: #34483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Auto-AssignCognitive ServicesService Attentionact-experience-enablement-squad

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions