Skip to content

foundry-cost-control 1.0.0b2: Override cognitiveservices account show in order to use api-version 2026-09-15-preview - #10403

Merged
Ethan Yang (necusjz) merged 4 commits into
Azure:mainfrom
dargilco:dargilco/foundry-cost-control-account-show-override
Sep 30, 2026
Merged

Ethan Yang (necusjz) merged 4 commits into
Azure:mainfrom
dargilco:dargilco/foundry-cost-control-account-show-override

Conversation

@dargilco

@dargilco Darren Cohen (dargilco) commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Based on feedback from internal users, I need to update the extension to also override the "cognitiveservices account show" command, such that it uses the 2026-09-15-preview api-version, therefore showing the additional properties related to cost-control. No change to the command other than using latest preview api-version. I plan to release this as beta 2 version (1.0.0b2).


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

Related command

General Guidelines

  • [YES] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • [YES] Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • [YES ] My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI balanced review requested due to automatic review settings September 29, 2026 00:04
@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.

Copilot review overview

🟢 Approval recommended

The focused implementation is consistent with the stated purpose and includes appropriate unit and scenario coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Overrides account display to use the preview API and expose cost-control properties.

Changes:

  • Adds and registers the preview-backed account_show.
  • Adds unit and scenario coverage.
  • Bumps the extension version and release history.
File Description
setup.py Bumps version to 1.0.0b2.
HISTORY.rst Documents the command override.
test_foundry_cost_control.py Verifies returned cost-control properties.
test_foundry_cost_control_custom_code.py Tests API version and resource ID construction.
custom.py Implements the preview account-show operation.
commands.py Registers the command override.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

@dargilco Darren Cohen (dargilco) changed the title Override cognitiveservices account show in order to use api-version 2026-09-15-preview foundry-cost-control 1.0.0b2: Override cognitiveservices account show in order to use api-version 2026-09-15-preview Sep 29, 2026
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@necusjz
Ethan Yang (necusjz) merged commit 873f0f6 into Azure:main Sep 30, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ foundry-cost-control-1.0.0b2 ] : https://dev.azure.com/msazure/One/_build/results?buildId=183447245&view=results

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