Skip to content

Switch to async command#7066

Merged
achauhan-scc merged 4 commits intoAzure:mainfrom
achauhan-scc:mdoel-ops-aysnc
Mar 11, 2026
Merged

Switch to async command#7066
achauhan-scc merged 4 commits intoAzure:mainfrom
achauhan-scc:mdoel-ops-aysnc

Conversation

@achauhan-scc
Copy link
Member

This pull request adds support for asynchronous model registration with server-side validation and polling in the Azure AI Foundry custom models extension. Users can now start model registration in async mode, optionally poll for completion, or use a new --no-wait flag to return immediately with an operation URL for manual status checking. The changes also update the extension version to 0.0.4-preview.

Async model registration and polling:

  • Added async model registration flow in custom_create.go, using RegisterModelAsync and PollOperation instead of the previous synchronous RegisterModel method. This allows the CLI to poll for registration completion or exit early if --no-wait is specified. [1] [2]
  • Introduced the --no-wait flag to the custom create command, enabling users to skip polling and receive the operation URL for manual status checks. [1] [2]
  • Updated CLI output to display registration start confirmation and operation URL, and improved user feedback for both success and failure scenarios. [1] [2]

Version updates and documentation:

  • Bumped extension version to 0.0.4-preview in extension.yaml and version.txt, and added a changelog entry describing async registration support. [1] [2] [3]

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Azure AI Foundry custom models extension to support asynchronous model registration, including optional polling for completion and a new --no-wait flag to return immediately with an operation URL.

Changes:

  • Switched custom model registration to an async flow (RegisterModelAsync) with optional polling (PollOperation) and a --no-wait escape hatch.
  • Updated user-facing CLI output to surface operation start and the operation URL.
  • Bumped the extension version to 0.0.4-preview and added a changelog entry describing the new async behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
cli/azd/extensions/azure.ai.models/internal/cmd/custom_create.go Adds --no-wait, switches to async registration, and implements polling/output changes.
cli/azd/extensions/azure.ai.models/extension.yaml Bumps extension version to 0.0.4-preview.
cli/azd/extensions/azure.ai.models/version.txt Bumps extension version marker to 0.0.4-preview.
cli/azd/extensions/azure.ai.models/CHANGELOG.md Adds release notes for 0.0.4-preview.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@achauhan-scc achauhan-scc merged commit 0748ce3 into Azure:main Mar 11, 2026
16 checks passed
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.

3 participants