Repository navigation
[Cognitive Services] az cognitiveservices: Update shortcut flags for Foundry Project and Cost Control operations - #34483
Open
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
The promised -p alias remains unsupported for standalone account project commands; add it to the shared argument registration or narrow the description and history notes to the updated Cost Control commands.
1 open issue
What changed in this PR
This PR aligns Cost Control argument aliases with other Cognitive Services commands by updating the generated command schemas.
Changes:
- Reassigns
-nand--namefrom Cost Control name to account name—a breaking change for existing callers. - Adds
-cfor Cost Control names while retaining--cost-control-name. - Adds
-pfor project names in project-scoped Cost Control commands.
Paths below are relative to src/azure-cli/azure/cli/command_modules/cognitiveservices/aaz/latest/cognitiveservices/account/.
| File | Description |
|---|---|
project/costcontrol/_update.py |
Updates account, Cost Control, and project aliases. |
project/costcontrol/_show.py |
Updates account, Cost Control, and project aliases. |
project/costcontrol/_list.py |
Adds account and project aliases. |
project/costcontrol/_head.py |
Updates aliases for project Cost Control existence checks. |
project/costcontrol/_delete.py |
Updates account, Cost Control, and project aliases. |
project/costcontrol/_create.py |
Updates account, Cost Control, and project aliases. |
costcontrol/_update.py |
Reassigns account and Cost Control aliases. |
costcontrol/_show.py |
Reassigns account and Cost Control aliases. |
costcontrol/_list.py |
Adds -n and --name account aliases. |
costcontrol/_head.py |
Updates aliases for account Cost Control existence checks. |
costcontrol/_delete.py |
Reassigns account and Cost Control aliases. |
costcontrol/_create.py |
Reassigns account and Cost Control aliases. |
Review effort: Balanced
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Contributor
|
Hi Darren Cohen (@dargilco), |
… project` commands
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
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-BreakingChangeTest
Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:
Related command
az cognitiveservices account projectcommandsaz cognitiveservices account costcontrolcommandsaz cognitiveservices account project costcontrolcommandsDescription
New Foundry Cost Control commands in preview were recently added. However, flag shortcuts did not align with the shortcuts already used in the
az cognitiveservicescommand group. With this PR, we update the shortcuts such that in all Cost Control commands--nameand-nis used for setting account name (instead of Cost Control name), to be consistent with otheraz cognitiveservicescommands. Instead, we use the shortcut-cfor the Cost Control name. This is a breaking change only in preview commands, which were just introduced for public preview in the November release, and we would like to do it ASAP before many more customers start using these commands.We also added shortcut
-pfor Foundry Project name in all relevant commands. This is an additive change to a stable command.Fixed GitHub issue #34476
Testing Guide
History Notes
[Cognitive Services]
az cognitiveservices account project: Add short flag-pfor Foundry project name in all commands in this group[Cognitive Services] BREADKING CHANGE:
az cognitiveservices account costcontrol: Use short flags--nameand-nfor account name to align with other Cognitive Services commands. Use short flag-cfor Cost Control name. Use short flag-pfor Foundry project name.[Cognitive Services] BREADKING CHANGE:
az cognitiveservices account project costcontrol: Use short flags--nameand-nfor account name to align with other Cognitive Services commands. Use short flag-cfor Cost Control name. Use short flag-pfor Foundry project name.This 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.