Skip to content

Quantum: add 'az quantum job delete' command - #10146

Merged
necusjz merged 2 commits into
Azure:mainfrom
v-elegacheva:ekat/job-delete-support-command
Jul 30, 2026
Merged

Quantum: add 'az quantum job delete' command#10146
necusjz merged 2 commits into
Azure:mainfrom
v-elegacheva:ekat/job-delete-support-command

Conversation

@v-elegacheva

@v-elegacheva v-elegacheva commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes
⚠️ None
⚠️Azure CLI Extensions Breaking Change Test
⚠️quantum
rule cmd_name rule_message suggest_message
⚠️ 1001 - CmdAdd quantum job delete cmd quantum job delete added

Summary

Adds a new az quantum job delete command to delete a job from an Azure Quantum workspace by its id.
This service supports this via the new Jobs_Delete data-plane operation, where an HTTP DELETE now performs a real delete. But there was no way to trigger it from the CLI, so users had to call the API directly.

Changes

  • Added az quantum job delete -g <rg> -w <workspace> -j <job-id>, calling the vendored SDK's jobs.delete operation (HTTP DELETE -> 204).
  • Registered the command with confirmation, which adds a --yes/y flag, j/--job-id is inherited from the existing quantum job argument group`.
  • Added command help and an example
  • Bumped version

Testing

  • All offline unit tests pass locally; added a unit test covering the missing-parameter path.
  • Manually verified end-to-end against a personal Azure subscription

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

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

a0x1ab commented Jul 27, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@v-elegacheva
v-elegacheva marked this pull request as ready for review July 27, 2026 18:14
Copilot AI review requested due to automatic review settings July 27, 2026 18:14
@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.

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 (DELETE204) operation, and bumps the extension version/history accordingly.

Changes:

  • Introduced az quantum job delete operation 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.0b19 and updated HISTORY.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.

Comment thread src/quantum/azext_quantum/operations/job.py
@v-elegacheva
v-elegacheva marked this pull request as draft July 27, 2026 18:19
@a0x1ab

a0x1ab commented Jul 27, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@v-elegacheva
v-elegacheva marked this pull request as ready for review July 27, 2026 18:44
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@v-elegacheva
v-elegacheva marked this pull request as draft July 27, 2026 18:48
@v-elegacheva
v-elegacheva marked this pull request as ready for review July 27, 2026 21:45
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@v-elegacheva

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 10146 in repo Azure/azure-cli-extensions

@yonzhan

yonzhan commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@necusjz
necusjz merged commit 43360d1 into Azure:main Jul 30, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ quantum-1.0.0b19 ] : https://dev.azure.com/msazure/One/_build/results?buildId=174419107&view=results

@v-elegacheva
v-elegacheva deleted the ekat/job-delete-support-command branch August 4, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants