Repository navigation
Foundry Cost Control for api-version 2026-11-15-preview - #34311
Closed
Darren Cohen (dargilco) wants to merge 2 commits into
Closed
Darren Cohen (dargilco) wants to merge 2 commits into
Darren Cohen (dargilco) wants to merge 2 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
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 use2026-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
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Collaborator
|
Please fix CI issues |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Member
Author
|
/azp run |
|
Commenter does not have sufficient privileges for PR 34311 in repo Azure/azure-cli |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
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 —⚠️ Review suggested
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 featureThis 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.