How to retrain a Model in the Azure ML Workspace

Nidhi Priya 661 Reputation points
2026-06-12T08:58:52.5366667+00:00

Hello Experts!

We have trained a model in Azure ML Workspace using Python Libraries under Notebook. The model has been successfully deployed as an endpoint. Now we wanted to retrain the model using the new data. What I know through my research is that we can retrain model using Designer pipeline. But what I wanted to know is that can we retrain model from Notebook maintaining our process?

And when we retrain model, we don't want to redeploy it, and the endpoint URL should remain same throughout as the endpoint is integrated with our in-house application.

Thanks!

Nidhi

Azure Machine Learning
0 comments No comments

Answer accepted by question author
SRILAKSHMI C 19,735 Reputation points Microsoft External Staff Moderator
2026-06-17T05:01:58.34+00:00

Hello @Nidhi Priya

Thank you for reaching out to Microsoft Q&A.

From what you've described, you currently train your model using Python libraries within Azure ML Notebooks, deploy it as an endpoint, and now want to retrain it using new data while ensuring that your in-house application can continue using the same endpoint URL. This is a very common scenario in production ML environments.

Based on the documentation and the information available, here's how this can be approached.

Can you retrain the model from a Notebook?

Yes. You can continue using your existing Notebook-based workflow for retraining. If your current training process is implemented using Python code in Azure ML Notebooks, you can reuse the same code to train a new version of the model using updated data.

Typically, the process would be:

  • Load the new dataset.

Execute the same preprocessing and training steps.

Generate the updated model artifact.

Register the retrained model as a new model version in Azure ML.

You do not have to move to Designer pipelines if you are comfortable maintaining your Notebook-based process.

Is using a Designer Pipeline also a valid approach?

Yes, the documentation explicitly supports retraining using published Azure ML pipelines. A common pattern is to:

Create a training pipeline,

Publish it as a Pipeline Endpoint,

Invoke that endpoint whenever new training data becomes available.

You can trigger the pipeline through:

Azure ML Studio,

Python SDK,

REST APIs,

Automation workflows.

The advantage of this approach is improved automation, repeatability, and operational governance.

However, it is important to note that the documentation primarily describes retraining through published pipelines and Pipeline Endpoints. It does not specifically describe an end-to-end "Notebook retrain and automatically update the serving endpoint" workflow.

Can the endpoint URL remain the same?

This is the key part of your question.

If your model is deployed using an Azure ML Managed Online Endpoint, the endpoint itself is separate from the model version being served.

That means your application can continue using the same endpoint URL.

For example:

Current deployment:

Endpoint: customer-risk-endpoint
Deployment: blue
Model: Version 1

After retraining:

Endpoint: customer-risk-endpoint
Deployment: blue
Model: Version 2

Your application continues calling the same endpoint URL without requiring any configuration changes.

Does retraining automatically update the endpoint?

This is where the documentation becomes important.

Based on the documents referenced, we can confirm that:

Training jobs can be submitted programmatically.

Published pipeline endpoints can be invoked using code or REST APIs.

Retraining can be automated using Pipeline Endpoints.

However, the documentation does not explicitly state that simply retraining the model from a Notebook will automatically replace the model behind an existing inference endpoint without any deployment update.

Therefore, we cannot confidently say that Notebook retraining alone will preserve the endpoint URL without any redeployment or deployment update step.

Will redeployment be required?

Technically, some form of deployment update is still required.

After retraining:

The retrained model becomes a new model version.

The existing deployment must be updated to reference that new version.

The important distinction is that this does not require creating a brand-new endpoint.

You do not need to:

Create another endpoint,

Change the endpoint URL,

Modify your application's integration.

You only need to update the deployment behind the existing endpoint to use the newer model version.

Recommended approach

If your primary goal is to preserve your current process while maintaining a stable endpoint URL, the safest approach would be:

Continue retraining using your existing Notebook and Python code.

Register each retrained model as a new version.

Update the existing online deployment to point to the latest model version.

Continue using the same endpoint URL from your application.

If you expect retraining to happen frequently, you may also consider converting your notebook logic into an Azure ML Pipeline and publishing it as a Pipeline Endpoint. You can then invoke the pipeline programmatically from your Notebook or automation process. This provides a more production-oriented retraining workflow, although the documentation still does not explicitly state that it automatically updates the serving deployment.

Please refer this

I Hope this helps. Do let me know if you have any further queries.


If this answers your query, please do click Accept Answer and Yes for was this answer helpful.

Thank you!

Was this answer helpful?

2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. AI answer

    2026-06-12T08:59:07.85+00:00

    Yes, a model can be retrained from a notebook while keeping the same online endpoint URL, as long as the endpoint is updated with the newly trained model instead of creating a new endpoint.

    In Azure Machine Learning there are two main parts to this scenario:

    1. Retraining the model
      • Retraining does not have to use Designer. Models can be trained using:
        • Python SDK jobs (for example, command() jobs or pipelines), or
        • Designer pipelines, or
        • Automated ML.
      • The key is that training is just another job in the workspace. A notebook can submit such jobs programmatically using the SDK, so the existing Python-based process can be preserved while changing only the data inputs or parameters.
      • Pipelines are often used when retraining needs to be repeatable and parameterized (for example, changing the training data path or hyperparameters). The Designer article shows this pattern using pipeline inputs to make the training data path configurable and then reusing the same pipeline for retraining with new data.
    2. Keeping the same endpoint URL while updating the model
      • The endpoint URL is tied to the online endpoint, not to a specific model version. To keep the same URL, the existing endpoint must be updated with a new deployment (or updated deployment) that uses the newly trained model.
      • In the Designer-based workflow, the process is:
        1. Modify and resubmit the training pipeline (for example, with new data via pipeline inputs).
        2. When the training job completes, register the new trained model output.
        3. Open or clone the inference pipeline, replace the old trained model (the MD-xxxx node) with the newly registered model, and submit the inference pipeline job.
        4. Deploy the updated inference pipeline to the existing online endpoint instead of creating a new one. This keeps the endpoint URL unchanged while the model behind it is updated.
      • The same pattern applies when training from a notebook: after retraining and registering a new model version, the deployment associated with the existing endpoint is updated to point to the new model. The endpoint name (and thus its URL) remains the same; only the underlying model artifact changes.

    In summary, retraining can be done entirely from notebooks using Python, and as long as the existing online endpoint is updated rather than recreated, the endpoint URL used by the in-house application remains constant while the model is refreshed with new data.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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