Skip to content

[Cognitive Services] az cognitiveservices account costcontrol and az cognitiveservices account project costcontrol: Add examples - #34456

Merged
xuming-ms merged 5 commits into
Azure:devfrom
dargilco:dargilco/cost-control-dec-release-example-updates
Nov 19, 2026
Merged

xuming-ms merged 5 commits into
Azure:devfrom
dargilco:dargilco/cost-control-dec-release-example-updates

Conversation

@dargilco

@dargilco Darren Cohen (dargilco) commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests Suppressions
️✔️ None ️✔️ 130/130 ️✔️ None

Related command

  • az cognitiveservices account costcontrol update
  • az cognitiveservices account project costcontrol update

Description
Fix typo in command descriptions and add more examples for several commands in these command groups

Testing Guide

History Notes

[Cognitive Services] az cognitiveservices account costcontrol and az cognitiveservices account project costcontrol: Add examples

This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new command example cannot run as written because it uses an invalid ---resource-group option and omits the closing quote on the --provider-properties value.

2 open issues
What changed in this PR

This PR expands Azure CLI help for account- and project-level Cognitive Services cost controls. Changes are limited to command descriptions and examples; runtime logic is unchanged.

Changes:

  • Adds focused examples for budget caps, alerts, blocking, and updates.
  • Revises full-settings examples and shorthand argument spelling.
  • Corrects “const control” to “cost control” in project command descriptions.
File Description
src/​azure-cli/​azure/​cli/​command_modules/​cognitiveservices/​aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_update.py Adds an alert-threshold update example and corrects description wording.
src/​azure-cli/​azure/​cli/​command_modules/​cognitiveservices/​aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_create.py Adds token-budget examples and corrects description wording.
src/​azure-cli/​azure/​cli/​command_modules/​cognitiveservices/​aaz/​latest/​cognitiveservices/​account/​costcontrol/​_update.py Adds a budget-cap update example and revises the full-settings example.
src/​azure-cli/​azure/​cli/​command_modules/​cognitiveservices/​aaz/​latest/​cognitiveservices/​account/​costcontrol/​_create.py Adds monthly-cap examples covering blocking and alert-only configurations.

Review effort: Balanced

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@x-engineering-agent

Copy link
Copy Markdown
Contributor

Hi Darren Cohen (@dargilco),
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@xuming-ms
xuming-ms merged commit b466ef7 into Azure:dev Nov 19, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants