How can I use built-in components from Azure ML Studio in the Python SDK?

Ben van der Weg 20 Reputation points
2025-01-15T09:07:54.9333333+00:00

I am trying to do something like this. I am trying to use the Python SDK to retrieve a built-in component from the Azure ML Studio Pipeline Designer so that I can use it to build pipelines in code, I don't think it works like this though because it can never find the component and when I iterate over the components the list is empty.

Is it possible to do this and if so, how?

select_columns_component = ml_client.components.get(
    name="select_columns_in_dataset",
    version="1"
)
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,091 questions
0 comments No comments
{count} votes

Accepted answer
  1. Azar 26,015 Reputation points MVP
    2025-01-15T11:59:29.2266667+00:00

    Hi there Ben van der Weg

    Thanks for using QandA palform

    seems built-in components from Azure ML Studio's Pipeline Designer aren’t directly accessible through the Python SDK using methods like ml_client.components.get. While some common components are available via the SDK, many of the components in Studio are intended for UI-based workflows. If you’re unable to find a component, consider using the SDK to define custom pipeline steps or scripts that replicate the behavior of these components. Alternatively, you can check the Azure ML documentation to see if the specific component, like select_columns_in_dataset, is available for use in the SDK or create a custom Python script for the same functionality.

    If this helps kindly accept the answer thanks much.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.