Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

How to list all pipelines available in a workspace? #29766

Open LukaszMilaszewski opened 1 year ago

LukaszMilaszewski commented 1 year ago

Hi. I have a question about AzureML SDK v2. How can I list all available pipelines in my workspace? In SDK v1 my code looks like:

from azureml.core import Workspace, Pipeline
workspace = Workspace.from_config()
pipeline_list = Pipeline.list(workspace)

What about AzureML SDK v2? I cannot find any info in the official documentation. I'd appreciate your help.

tjprescott commented 1 year ago

@luigiw @azureml-github can you please answer @LukaszMilaszewski's question?

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github, @Azure/azure-ml-sdk.

Issue Details
Hi. I have a question about AzureML SDK v2. How can I list all available pipelines in my workspace? In SDK v1 my code looks like: ``` from azureml.core import Workspace, Pipeline workspace = Workspace.from_config() pipeline_list = Pipeline.list(workspace) ``` What about AzureML SDK v2? I cannot find any info in the official documentation. I'd appreciate your help.
Author: LukaszMilaszewski
Assignees: luigiw
Labels: `question`, `Machine Learning`, `Service Attention`, `customer-reported`
Milestone: -
cloga commented 1 month ago

Hi @LukaszMilaszewski , In SDK v2, there no separate concept of pipeline any more, it is just one type of job, please use job interface to interact with them like: https://learn.microsoft.com/en-us/cli/azure/ml/job?view=azure-cli-latest