Quantum: add 'az quantum job delete' command - #10146
Merged
necusjz merged 2 commits intoJul 30, 2026
Merged
Conversation
Adds support for deleting a job from an Azure Quantum workspace via the new Jobs_Delete data-plane operation (HTTP DELETE, 204). Registers the command with confirmation, adds help and a param-missing test, and bumps the extension version to 1.0.0b19.
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
necusjz,
wangzelin007 and
yonzhan
July 27, 2026 17:34
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
v-elegacheva
marked this pull request as ready for review
July 27, 2026 18:14
|
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.
Pull request overview
Adds a new az quantum job delete command to enable true job deletion from an Azure Quantum workspace via the data-plane Jobs_Delete (DELETE → 204) operation, and bumps the extension version/history accordingly.
Changes:
- Introduced
az quantum job deleteoperation wiring (command registration + help entry). - Added a unit-test invocation covering the missing-parameter error path for the new command.
- Bumped extension version to
1.0.0b19and updatedHISTORY.rst.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/quantum/setup.py | Bumps extension version to 1.0.0b19. |
| src/quantum/HISTORY.rst | Adds release note entry for the new delete command. |
| src/quantum/azext_quantum/tests/latest/test_quantum_jobs.py | Adds missing-parameter test invocation for az quantum job delete. |
| src/quantum/azext_quantum/operations/job.py | Implements the new delete(...) operation calling the vendored SDK. |
| src/quantum/azext_quantum/commands.py | Registers quantum job delete with confirmation prompt support. |
| src/quantum/azext_quantum/_help.py | Adds command help and an example for quantum job delete. |
v-elegacheva
marked this pull request as draft
July 27, 2026 18:19
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
v-elegacheva
marked this pull request as ready for review
July 27, 2026 18:44
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
v-elegacheva
marked this pull request as draft
July 27, 2026 18:48
v-elegacheva
marked this pull request as ready for review
July 27, 2026 21:45
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
Author
|
/azp run |
|
Commenter does not have sufficient privileges for PR 10146 in repo Azure/azure-cli-extensions |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
04diiguyi
approved these changes
Jul 29, 2026
necusjz
approved these changes
Jul 30, 2026
Collaborator
|
[Release] Update index.json for extension [ quantum-1.0.0b19 ] : https://dev.azure.com/msazure/One/_build/results?buildId=174419107&view=results |
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
Summary
Adds a new
az quantum job deletecommand to delete a job from an Azure Quantum workspace by its id.This service supports this via the new
Jobs_Deletedata-plane operation, where an HTTPDELETEnow performs a real delete. But there was no way to trigger it from the CLI, so users had to call the API directly.Changes
az quantum job delete -g <rg> -w <workspace> -j <job-id>, calling the vendored SDK'sjobs.deleteoperation (HTTPDELETE->204).--yes/yflag,j/--job-idis inherited from the existingquantum jobargument group`.Testing