Data Analytics AI & Machine Learning Microsoft Fabric

MLflow in Microsoft Fabric: Tracking, Registry and Deployment

MLflow in Microsoft Fabric: Tracking, Registry and Deployment
AI & Machine Learning

MLflow in Microsoft Fabric: Tracking, Registry and Deployment

⏱️ 9 min read
AI & Machine Learning · Microsoft Fabric · January 2027
MLflow Microsoft Fabric lifecycle: notebook runs are tracked, compared, registered as model versions and scored into Delta tables that Power BI reads, by Numlytics

One workspace carries a model from the first run to the report that uses it.

MLflow Microsoft Fabric work is less about the model and more about the handoffs around it: from experiment to registered version, from version to scoring, and from scoring to a report someone trusts. Failures tend to happen at those joins, as environments drift, nobody can say which run produced the model in use, or predictions arrive in a report without lineage.

This guide covers the full path in Fabric: tracking runs in notebooks, comparing them, registering model versions, scoring in batch or in real time, and serving predictions to Power BI. It merges what were two separate posts on tracking and on the lifecycle, so you get one reference. Where Microsoft documents a limit or a preview status, we say so.

MLflow Microsoft Fabric: Fix the Handoffs, Not Only the Model

A model is hard to defend if you cannot answer four questions: what data trained it, which settings produced it, how it compared with the alternatives, and which version is in use. MLflow gives you a place to record each answer, and Fabric puts that record in the same workspace as your Lakehouse, notebooks and reports. Regulated teams often ask for exactly this trail. Check which rules apply to you before you design it, because we do not give legal guidance here.

Lifecycle stepWhat Fabric providesWorth knowing
Experiments and runsLog parameters, metrics, tags and output files for each run; compare runs in the run listRuns are grouped by experiment; the notebook authoring widget shows runs per cell
ML models and versionsRegister a run as a model, then manage versions, tags and metricsVersions carry hyperparameters, metrics, signature and logged files
AutologgingCaptures parameters, metrics and models during trainingFabric calls mlflow.autolog() when you import mlflow; you can disable it per session or per workspace
ScoringBatch scoring with PREDICT; real-time endpoints in previewBatch output goes to Delta tables that Power BI can read
MLflow in Microsoft Fabric lifecycle in five steps: track runs, compare runs, register a model version, score with PREDICT into Delta tables, and report in Power BI

One workspace carries a model from the first run to the report that uses it.

Tracking Experiments in Fabric Notebooks

An experiment is the unit that groups related runs, and a run is one execution of your model code. You can create an experiment in the Fabric interface or from code with set_experiment, which creates it if the name does not exist. A run records its source notebook, start time, status, hyperparameters, metrics, output files and tags.

Autologging does much of the work. Microsoft states that Fabric calls mlflow.autolog() when you open a Data Science notebook, and configures it when you run import mlflow. It captures parameters, metrics and models as you train. You can turn it off in a session with mlflow.autolog(disable=True), or for the whole workspace in the Spark settings. If you add your own logging, set exclusive to False so your parameters and metrics sit alongside the automatic ones.

import mlflow
from mlflow.models import infer_signature
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import roc_auc_score

mlflow.set_experiment("churn-model")

with mlflow.start_run(run_name="baseline") as run:
    model = RandomForestClassifier(n_estimators=200).fit(X_train, y_train)
    mlflow.log_param("n_estimators", 200)
    mlflow.log_metric("auc", roc_auc_score(y_test, model.predict_proba(X_test)[:, 1]))
    mlflow.set_tag("data_version", "customers_2027_01")
    mlflow.sklearn.log_model(model, name="model",
                             signature=infer_signature(X_test, model.predict(X_test)))

The snippet is illustrative, and we have not run it on your data. The log_model argument for the model path differs between MLflow versions, so use the form your Fabric runtime expects. Note the data_version tag. A tag that names the data snapshot is the cheapest way to make a run reproducible, and it is a habit we add on every engagement.

Tags have limits in Fabric. Names and values cannot be empty, names can be up to 250 characters, values up to 5,000, and names beginning with synapseml, mlflow or trident are restricted.

Comparing Runs and Choosing a Model

In the experiment's Run list view you can customise columns, filter runs, and select several to compare in the metrics comparison pane, where you can change the chart type and axes. For repeatable selection, query runs with the MLflow API instead of picking by eye. That also gives you a record of how the choice was made.

best = mlflow.search_runs(
    experiment_names=["churn-model"],
    order_by=["metrics.auc DESC"],
    max_results=1,
)
best_run_id = best.loc[0, "run_id"]

Choosing on one metric is rarely enough. Record why a run won, in a tag or a note, so a reviewer can see that fairness, stability and cost were considered, not only the top score.

Registering Model Versions and Keeping an Audit Trail

Once a run is good enough, save it as an ML model from the run page, or register it in code. If a model with that name does not exist, register_model creates it, and each later call adds a version.

from mlflow import MlflowClient

mv = mlflow.register_model(f"runs:/{best_run_id}/model", "churn-model")
MlflowClient().set_model_version_tag("churn-model", mv.version,
                                     "review_status", "approved_by_risk")
Version propertyWhat it records
Time createdWhen the version was registered
Run nameThe run that produced the version
HyperparametersKey-value pairs; keys and values are strings
MetricsKey-value pairs; values are numeric
Model schema or signatureInput and output description, needed for PREDICT
Logged filesImages, environment files, model files and data files
TagsCustom key-value metadata attached to the version

Version tags are where you carry approval status, reviewer and data snapshot. We found no documented Staging and Production stage workflow for Fabric ML models. Stage transitions appear in Databricks registry documentation, so do not assume they exist here. Our earlier posts described stages in Fabric; this merged guide replaces that wording. With MLflow 3 support, a logged model also becomes a LoggedModel linked to its run, parameters, metrics and datasets, and you can register it from the experiment page.

Scoring: Batch With PREDICT, Real Time in Preview

Fabric's PREDICT function supports batch scoring in any compute engine. It requires the model saved in MLflow format with its signature populated, supports a defined list of flavors including CatBoost, LightGBM, Sklearn, XGBoost and others, and does not support multi-tensor inputs or outputs.

from synapse.ml.predict import MLFlowTransformer

spark.conf.set("spark.synapse.ml.predict.enabled", "true")

model = MLFlowTransformer(
    inputCols=feature_cols,
    outputCol="prediction",
    modelName="churn-model",
    modelVersion=2,
)
scored = model.transform(spark.createDataFrame(test))
scored.write.format("delta").mode("overwrite").save("Tables/churn_predictions")

For on-demand predictions, Fabric offers ML model endpoints. Microsoft marks the feature as preview. It supports a limited set of flavors, including Keras, LightGBM, Sklearn and XGBoost, and does not support models with tensor-based schemas or no schema. A tenant setting controls it. Treat it as something to pilot, not as a default production path.

From Predictions to Power BI

Batch predictions land in a Lakehouse as Delta tables, which is the format Direct Lake reads from OneLake. A Direct Lake refresh only updates metadata, so a new scoring run becomes visible after framing, without copying the data into the model. Direct Lake has limits of its own, covered in our SSAS migration guide, so check them against your model before you commit.

Join the predictions to your existing dimensions, and show the model version and score date next to every prediction in the report. That small step answers the lineage question on the page where the number is read. Our guide to AI in data analytics covers how to put model outputs inside the reports people already use.

Governance and Capacity

Fabric items follow workspace roles, so decide who can train, who can register and who can score before you start. Separate workspaces for development and production give you a clear approval step even without registry stages. Training can also draw heavily on capacity, so watch capacity unit use during large jobs. Our Fabric capacity estimator and our guide to capacity overage help you size and monitor it. For the readiness questions that come before any of this, see unlocking data potential with AI.

Key Takeaways
  • Treat tracking, registry, scoring and reporting as one lifecycle, and fix the handoffs between them.
  • Autologging is on by default in Fabric notebooks. Add tags for data version and review status.
  • Fabric ML models use versions and tags. Do not assume Staging and Production stages.
  • PREDICT handles batch scoring, and real-time endpoints are in preview.
  • Show model version and score date in the report, so the lineage is visible.

MLflow Microsoft Fabric FAQ

Is MLflow built into Microsoft Fabric?

Yes. Fabric uses MLflow for experiment tracking and for ML models, and a notebook calls mlflow.autolog() for you when you import mlflow. You still write the logging code you need beyond the automatic defaults.

Does Fabric support Staging and Production stages for models?

We found no documented stage workflow for Fabric ML models. Microsoft's Fabric pages describe model versions and version tags. Stage transitions appear in Databricks registry documentation, so do not assume they apply here. Use tags, naming and separate workspaces to mark approval.

How do I score a model in batch?

Use the PREDICT function, which supports batch scoring in any compute engine. It needs the model saved in MLflow format with its signature populated, and it supports a defined list of flavors. Write the results to a Lakehouse Delta table.

Can I serve real-time predictions from Fabric?

Fabric offers ML model endpoints for on-demand predictions, and Microsoft marks the feature as preview. It supports a limited set of flavors, including Keras, LightGBM, Sklearn and XGBoost, and not models with tensor-based or missing schemas. Test it before you depend on it.

How do predictions reach Power BI?

Write predictions to a Delta table in a Lakehouse, then build a Direct Lake semantic model over it. Direct Lake reads Delta tables from OneLake, and its refresh only updates metadata, called framing.

Planning an ML platform on Fabric? Speak with a Fabric data science consultant, or read about our Microsoft Fabric migration service, which includes capacity sizing.