Skip to content

Foundry Cost Control for api-version 2026-11-15-preview - #34311

Closed
Darren Cohen (dargilco) wants to merge 2 commits into
Azure:devfrom
dargilco:dargilco/add-cost-control-crud
Closed

Darren Cohen (dargilco) wants to merge 2 commits into
Azure:devfrom
dargilco:dargilco/add-cost-control-crud

Conversation

@dargilco

@dargilco Darren Cohen (dargilco) commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests Suppressions
⚠️ None ️✔️ 130/130 ️✔️ None
⚠️AzureCLI-BreakingChangeTest
⚠️cognitiveservices
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd cognitiveservices account costcontrol sub group cognitiveservices account costcontrol added
⚠️ 1011 - SubgroupAdd cognitiveservices account project costcontrol sub group cognitiveservices account project costcontrol added

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


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

Copilot AI balanced review requested due to automatic review settings October 30, 2026 23:40
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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

Malformed resource-ID templates reject valid notification and project IDs, while float schemas cannot preserve valid int64 token amounts and thresholds across create, update, and read operations.

3 open issues
What changed in this PR

Adds generated Azure CLI commands for managing Foundry cost controls at account and project scope within the Cognitive Services module.

Changes:

  • Adds create, update, show, list, delete, and existence-check commands for both scopes.
  • Introduces project budget settings for cost or tokens, traffic filters, notifications, and blocking actions using 2026-11-15-preview; most account commands use 2026-09-15-preview.
  • Integrates generated command loading and registers the command groups.

Paths below are relative to src/azure-cli/azure/cli/command_modules/cognitiveservices/.

File Description
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_update.py Updates project budgets through GET and PUT operations.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_show.py Retrieves a project cost control.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_list.py Lists project cost controls with pagination.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_head.py Checks project cost-control existence.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_delete.py Deletes project cost controls with optional ETag matching.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​_create.py Creates project budgets with filters and enforcement settings.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​__init__.py Exports project cost-control commands.
aaz/​latest/​cognitiveservices/​account/​project/​costcontrol/​__cmd_group.py Registers the project cost-control group.
aaz/​latest/​cognitiveservices/​account/​project/​__init__.py Exports the project command group.
aaz/​latest/​cognitiveservices/​account/​project/​__cmd_group.py Registers the project group.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​_update.py Updates account cost-control rules.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​_show.py Retrieves an account cost control.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​_list.py Lists account cost controls with pagination.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​_head.py Checks account cost-control existence.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​_delete.py Deletes account cost controls with optional ETag matching.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​_create.py Creates rule-based account cost controls.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​__init__.py Exports account cost-control commands.
aaz/​latest/​cognitiveservices/​account/​costcontrol/​__cmd_group.py Registers and describes the account cost-control group.
aaz/​latest/​cognitiveservices/​account/​__init__.py Exports the generated account group.
aaz/​latest/​cognitiveservices/​account/​__cmd_group.py Registers the generated account group.
aaz/​latest/​cognitiveservices/​__init__.py Exports the generated Cognitive Services group.
aaz/​latest/​cognitiveservices/​__cmd_group.py Registers the generated Cognitive Services group.
aaz/​latest/​__init__.py Initializes the generated command-version package.
aaz/​__init__.py Initializes the generated command package.
__init__.py Loads generated commands alongside existing module commands.

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).

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@dargilco

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 34311 in repo Azure/azure-cli

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@yonzhan
Yong Zhang (yonzhan) requested a review from a team November 2, 2026 22:15
@azure-pipelines

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

@dargilco
Darren Cohen (dargilco) deleted the dargilco/add-cost-control-crud branch November 3, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants