Skip to content

[azure-ai-projects] Submit, read, and compose Foundry PipelineJobs - #49464

Open
Zhidong Zhu (zzn2) wants to merge 79 commits into
Azure:feature/azure-ai-projects/training-prpr-2.2.0from
zzn2:feature/azure-ai-projects/training-prpr-2.2.0-pipelines
Open

Zhidong Zhu (zzn2) wants to merge 79 commits into
Azure:feature/azure-ai-projects/training-prpr-2.2.0from
zzn2:feature/azure-ai-projects/training-prpr-2.2.0-pipelines

Conversation

@zzn2

@zzn2 Zhidong Zhu (zzn2) commented Oct 10, 2026 •

Copy link
Copy Markdown

The 2.2.0 training preview exposes standalone Command jobs through client.beta.jobs on /jobs, but the Python SDK could not construct, submit, or read a Pipeline graph through that client. The evolving TypeSpec also declares a dedicated /pipeline_jobs ingress; callers need a typed Python surface for that contract without losing the existing Command behavior.

Extend the generated job models and sync/async client.beta.jobs operations to submit and deserialize PipelineJob alongside CommandJob. Expose the spec's dedicated route through sync/async client.pipeline_jobs, with the preview feature header and resource envelopes flattened to the public PipelineJob model. Both surfaces share local Code asset registration. Pipeline graphs can contain raw node dictionaries or inline typed Command nodes with literal, uri_file, and uri_folder value bindings. Function-body @component and @pipeline authoring, optional source-backed component snapshots, examples, documentation, and focused regression tests are included. A generated memory-list request regression introduced during the route update is corrected so scope is serialized before paging requests are built.

This targets the SDK training branch rather than main because it provides the Command jobs UX. The generated contract is pinned to TypeSpec source commit 211fd2c, whose tree matches the current head of the still-open Pipeline TypeSpec PR Azure/azure-rest-api-specs#47010. That PR builds on the Command Jobs draft Azure/azure-rest-api-specs#45258, which is closed without merging. The divergent Command-only /training_jobs proposal Azure/azure-rest-api-specs#45823 is not used.

The uri_folder support binds existing output values; it does not upload local folders or add uri_folder ports to function-body components. Source-backed components require a runtime image containing compatible azure-ai-projects and imported dependencies. This does not add AML @dsl.pipeline parity or change the service. In particular, acceptance through /jobs does not prove that the separate /pipeline_jobs ingress is deployed: on the tested eastus2euap canary, GET /pipeline_jobs and GET /pipeline_jobs/{name} for an existing Pipeline both returned 404 with 2026-01-15-preview and the required preview header, while GET /jobs/{name} returned 200. No create was attempted through /pipeline_jobs; its public route/version still needs an owner decision before release.

Nested pipelines and runtime-dynamic sub-graphs are delivered as follow-up changes into this branch rather than in the current diff: native nested @pipeline composition is in zzn2/azure-sdk-for-python#12, and an SDK-native @dynamic decorator (ported from mldesigner's dynamic executor so the runtime does not depend on mldesigner or azure-ai-ml) is being added separately. The server-side registration of generated dynamic sub-pipeline components in Foundry projects is tracked in sdk-cli-v2 !2439884.

Zhidong Zhu (zzn2) and others added 30 commits October 3, 2026 06:13
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ry typing

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…xecution

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…shots

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…pshots

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ce requests

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Allow typed CommandJob nodes to bind value-backed uri_folder inputs and add wire-shape coverage for producer-consumer folder handoffs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
[azure-ai-projects] Submit and read Pipeline jobs through beta.jobs
[azure-ai-projects] Support local code in PipelineJob command nodes
…ponents

Author Foundry pipeline jobs from Python component functions
…urce-snapshot

Support source-backed Python components in Foundry pipeline jobs
Preserve the existing typed uri_folder binding and wire-shape coverage on the current function-component baseline.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Zhidong Zhu (zzn2) and others added 24 commits November 13, 2026 10:20
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…izhu-microsoft-register-command-before-pipeline
# Conflicts:
#	sdk/ai/azure-ai-projects/README.md
#	sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_jobs_async.py
#	sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_jobs.py
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…u-microsoft-register-command-before-pipeline
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…u-microsoft-register-command-before-pipeline
…perations

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…u-microsoft-register-command-before-pipeline

# Conflicts:
#	sdk/ai/azure-ai-projects/CHANGELOG.md
#	sdk/ai/azure-ai-projects/tests/jobs/test_pipeline_jobs.py
Zhidong Zhu (zzn2) and others added 5 commits December 4, 2026 01:28
Support native nested pipelines and recursive component source upload
Route pipeline_jobs through the existing Jobs API
Fix Pipeline and single-file job output downloads
…u-microsoft-register-command-before-pipeline
…fore-pipeline

Register authored Pipeline Command components before job submission

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Projects Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant