AML Pipeline as an Artifacts in Azure Devops CI/CD

Obaid Ur Rehman 21 Reputation points
2022-02-23T13:42:31.26+00:00

I have a script that has multiple steps to preprocess, train, register model, and publish an AML pipeline.

Here is the code for AML pipeline:

step_sequence = StepSequence(steps=[step1, step2,step3])
    pipeline = Pipeline(workspace=ws, steps=step_sequence)

    pipeline.validate()

    # Submit a pipeline
    pipeline.submit(experiment_name=e.experiment_name_train)
    print("Pipeline submitted for execution.")

    # Publish a pipeline
    published_pipeline = pipeline.publish(
        name='SomeName',
        description="some Desc",
        version=e.build_id
    )
    #Publish the pipeline to its versioned endpoint URI
    publish_pipeline_to_endpoint(ws, published_pipeline)

In CI pipeline, we want publish the AML pipeline as an artifact so that it can be used in CD pipeline and deploy the same AML pipeline in test and prod.

Not just a model, we want to deploy whole AML pipeline.

Is there a way to do this?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,837 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,166 Reputation points
    2022-02-24T15:50:51.947+00:00

    Hi, thanks for reaching out. Please review the following resources:

    0 comments No comments

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.