Repository navigation
[Cognitive Services] az cognitiveservices account update: Add support for setting cost-control-connections - #34453
Draft
Darren Cohen (dargilco) wants to merge 13 commits into
Draft
Darren Cohen (dargilco) wants to merge 13 commits into
Darren Cohen (dargilco) wants to merge 13 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
All four cost-control create/update templates reject valid Event Grid connection IDs, breaking account and project commands when notifications supply those connections.
2 open issues
What changed in this PR
The PR targets Cognitive Services cost-control support in Azure CLI. The supplied changes update generated account and project cost-control commands, rather than the handwritten account-update command named in the description.
Changes:
- Expand budget, notification, and blocking examples and revise shorthand argument keys.
- Correct project cost-control help text.
- Modify Event Grid connection resource-ID validation templates.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/cognitiveservices/aaz/latest/cognitiveservices/account/project/costcontrol/_update.py |
Corrects help text, revises the example, and changes connection-ID validation. |
src/azure-cli/azure/cli/command_modules/cognitiveservices/aaz/latest/cognitiveservices/account/project/costcontrol/_create.py |
Expands token-budget examples, corrects help text, and changes connection-ID validation. |
src/azure-cli/azure/cli/command_modules/cognitiveservices/aaz/latest/cognitiveservices/account/costcontrol/_update.py |
Revises example argument keys and changes connection-ID validation. |
src/azure-cli/azure/cli/command_modules/cognitiveservices/aaz/latest/cognitiveservices/account/costcontrol/_create.py |
Adds monthly-budget examples and changes connection-ID validation. |
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). |
cognitiveservices account update: Add support for setting cost-control-connectionsaz cognitiveservices account update: Add support for setting cost-control-connections
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
…nd Fix Function App scenario recordings (Azure#34448) Co-authored-by: xinyu pang <xinyupang@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…m/dargilco/azure-cli into dargilco/cost-control-dec-release
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Darren Cohen (dargilco)
marked this pull request as draft
November 18, 2026 19:36
This branch has not been deployed
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 — ❌ Action needed
❌AzureCLI-FullTest
Related command
az cognitiveservices account update
Description
ARM SDK package
azure-mgmt-cognitiveservices 15.1.0b1was recently released, which added support for setting Cost Control Connections during an Account update operations. Theaz cognitiveservices account updatecommand is handwritten on top of SDK calls. Update this hand-written code to also enable setting of Cost Control Connections.Testing Guide
History Notes
[cognitiveservices account update] Add support for setting cost-control-connections during account update
This checklist is used to make sure that common guidelines for a pull request are followed.
[v] The PR title and description has followed the guideline in Submitting Pull Requests.
[v] I adhere to the Command Guidelines.
[v] I adhere to the Error Handling Guidelines.