Skip to content

Commit 2782f47

Browse files
authored
Merge pull request #225836 from santiagxf/santiagxf/azureml-mlflow-rroubleshooting
Update how-to-use-mlflow-configure-tracking.md
2 parents 95f576d + 3caa2be commit 2782f47

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

articles/machine-learning/how-to-use-mlflow-configure-tracking.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ ms.devlang: azurecli
1717

1818
# Configure MLflow for Azure Machine Learning
1919

20-
Azure Machine Learning workspaces are MLflow compatible, which means they can act as an MLflow server without any extra configuration. Each workspace has an MLflow tracking URI that can be used by MLflow to connect to the workspace. In this article, learn how you can configure MLflow to connect to an Azure Machine Learning for tracking, registries, and deployment.
20+
Azure Machine Learning workspaces are MLflow-compatible, which means they can act as an MLflow server without any extra configuration. Each workspace has an MLflow tracking URI that can be used by MLflow to connect to the workspace. Azure Machine Learning workspaces **are already configured to work with MLflow** so no extra configuration is required.
21+
22+
However, if you are working outside of Azure Machine Learning (like your local machine, Azure Synapse Analytics, or Azure Databricks) you need to configure MLflow to point to the workspace. In this article, you'll learn how you can configure MLflow to connect to an Azure Machine Learning for tracking, registries, and deployment.
2123

2224
> [!IMPORTANT]
23-
> When running on Azure Compute (Azure ML Notebooks, Jupyter notebooks hosted on Azure ML Compute Instances, or jobs running on Azure ML compute clusters) you don't have to configure the tracking URI. It's automatically configured for you.
25+
> When running on Azure Compute (Azure ML Notebooks, Jupyter notebooks hosted on Azure ML Compute Instances, or jobs running on Azure ML compute clusters) you don't have to configure the tracking URI. **It's automatically configured for you**.
2426
2527
## Prerequisites
2628

@@ -49,10 +51,19 @@ The Azure Machine Learning plugin for MLflow supports several authentication mec
4951

5052
[!INCLUDE [cli v2](../../includes/machine-learning-mlflow-configure-auth.md)]
5153

52-
> [!NOTE]
53-
> If you'd rather use a certificate instead of a secret, you can configure the environment variables `AZURE_CLIENT_CERTIFICATE_PATH` to the path to a `PEM` or `PKCS12` certificate file (including private key) and
54+
If you'd rather use a certificate instead of a secret, you can configure the environment variables `AZURE_CLIENT_CERTIFICATE_PATH` to the path to a `PEM` or `PKCS12` certificate file (including private key) and
5455
`AZURE_CLIENT_CERTIFICATE_PASSWORD` with the password of the certificate file, if any.
5556

57+
### Troubleshooting authentication
58+
59+
MLflow will try to authenticate to Azure Machine Learning on the first operation interacting with the service, like `mlflow.set_experiment()` or `mlflow.start_run()`. If you find issues or unexpected authentication prompts during the process, you can increase the logging level to get more details about the error:
60+
61+
```python
62+
import logging
63+
64+
logging.getLogger("azure").setLevel(logging.DEBUG)
65+
```
66+
5667
## Set experiment name (optional)
5768

5869
All MLflow runs are logged to the active experiment. By default, runs are logged to an experiment named `Default` that is automatically created for you. You can configure the experiment where tracking is happening.
@@ -87,4 +98,4 @@ Now that your environment is connected to your workspace in Azure Machine Learni
8798
- [Track ML experiments and models with MLflow](how-to-use-mlflow-cli-runs.md)
8899
- [Manage models registries in Azure Machine Learning with MLflow]()
89100
- [Train with MLflow Projects (Preview)](how-to-train-mlflow-projects.md)
90-
- [Guidelines for deploying MLflow models](how-to-deploy-mlflow-models.md)
101+
- [Guidelines for deploying MLflow models](how-to-deploy-mlflow-models.md)

0 commit comments

Comments
 (0)