Repository navigation
[Cognitive Services] az cognitiveservices account costcontrol and az cognitiveservices account project costcontrol: Add examples - #34456
Merged
xuming-ms merged 5 commits intoNov 19, 2026
Conversation
Contributor
There was a problem hiding this comment.
🟡 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
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Contributor
|
Hi Darren Cohen (@dargilco), |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
xuming-ms
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤖 PR Validation — ️✔️ All clear
Related command
az cognitiveservices account costcontrol updateaz cognitiveservices account project costcontrol updateDescription
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 costcontrolandaz cognitiveservices account project costcontrol: Add examplesThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.