Σημείωμα
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να εισέλθετε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
Move your models from Legacy MLflow Model Serving to the Model Serving experience built on serverless compute. Enable Model Serving in your workspace, then move each model and the application that queries it.
Important
As of August 22, 2025, customers can no longer create new serving endpoints using the Legacy MLflow Model Serving experience. On September 15, 2025, the legacy experience reached end of life and all existing endpoints using this service can no longer be used.
Requirements
- A registered model in Unity Catalog (recommended) or in the Workspace Model Registry.
- Permissions on the registered models as described in the access control guide.
- Enable Model Serving for your workspace.
Significant changes
In Model Serving, the format of the request to the endpoint and the response from the endpoint are slightly different from Legacy MLflow Model Serving. For the new request format, see Format scoring requests.
| Legacy MLflow Model Serving | Model Serving |
|---|---|
Endpoint URL that includes model |
Endpoint URL that includes serving-endpoints |
Endpoint created from the Staging or Production stage of a model version |
Endpoint created from a model version. Unity Catalog doesn't support stages, so create one endpoint per alias, such as champion or challenger. See Create one endpoint per model alias. |
| Model in the Workspace Model Registry | Model in Unity Catalog (recommended) |
Model Serving also has these changes.
- Model Serving includes full support for managing resources with API workflows.
- Model Serving is production-ready and backed by the Azure Databricks service level agreement (SLA).
Move each model to a serving endpoint
Follow these steps for each model that you served with Legacy MLflow Model Serving.
Register your model in Unity Catalog
Open the Serving UI
In the sidebar, select Serving.
Create a serving endpoint for the model
See Create an endpoint for custom models in Model Serving.
Query the endpoint to check the response
For the accepted request formats, see Format scoring requests. The response has a predictions key with the output from your model.
Transition your application to the endpoint
Use the new URL that the endpoint provides, and send requests in the new scoring format.
When your application sends requests to the new endpoint, the migration for that model is complete.
Create one endpoint per model alias
An alias is a name, such as champion, that points to one version of a registered model. To set or move an alias, see Use model aliases.
In Legacy MLflow Model Serving, the serving endpoint was created based on the stage of the registered model version: Staging or Production. Unity Catalog doesn't support stages, so this section creates one endpoint for each alias instead. Skip this section if you didn't use stages.
In the example, the model main.default.model_a has version 1 with the alias champion and version 2 with the alias challenger.
The REST requests in this section need your workspace URL and an access token. See Authorize access to Azure Databricks resources. The paths in this section are relative to your workspace URL.
Create two endpoints for your model
Create one endpoint for the challenger alias and one for the champion alias.
For the challenger alias, send a POST request to /api/2.0/serving-endpoints with this body:
{
"name": "model-a-challenger",
"config": {
"served_entities": [
{
"entity_name": "main.default.model_a",
"entity_version": "2",
"workload_size": "Small",
"scale_to_zero_enabled": true
}
]
}
}
The response includes the endpoint name and a state object.
For the champion alias, send a POST request to the same path with this body:
{
"name": "model-a-champion",
"config": {
"served_entities": [
{
"entity_name": "main.default.model_a",
"entity_version": "1",
"workload_size": "Small",
"scale_to_zero_enabled": false
}
]
}
}
The champion request returns the same fields. Scale to zero isn't recommended for production workloads that need consistent uptime, so the champion endpoint turns it off.
Verify the status of the endpoints
Send a GET request to /api/2.0/serving-endpoints/model-a-challenger and to /api/2.0/serving-endpoints/model-a-champion. When an endpoint is ready, its state object has ready set to READY.
Query each endpoint
After the endpoints are ready, send a POST request to /serving-endpoints/model-a-challenger/invocations for the challenger endpoint, and to /serving-endpoints/model-a-champion/invocations for the champion endpoint. The request body uses one of the accepted formats in Format scoring requests. The response has a predictions key.
Update the endpoints when the aliases move
When you create version 3, you can move the champion alias to version 2 and the challenger alias to version 3. Version 1 loses its alias.
For the challenger endpoint, send a PUT request to /api/2.0/serving-endpoints/model-a-challenger/config with this body:
{
"served_entities": [
{
"entity_name": "main.default.model_a",
"entity_version": "3",
"workload_size": "Small",
"scale_to_zero_enabled": true
}
]
}
For the champion endpoint, send a PUT request to /api/2.0/serving-endpoints/model-a-champion/config with this body:
{
"served_entities": [
{
"entity_name": "main.default.model_a",
"entity_version": "2",
"workload_size": "Small",
"scale_to_zero_enabled": false
}
]
}
Send the GET request from the verify step to confirm that ready is READY.
Additional resources
| Resource | Description |
|---|---|
| Create an endpoint for custom models in Model Serving | Create and configure Model Serving endpoints for your registered models. |
| Query serving endpoints for custom models | Send requests to custom model endpoints in the supported scoring formats. |