You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
19
+
This article explains how you can configure MLflow to connect to an Azure Machine Learning workspace for tracking, registries, and deployment.
20
+
21
+
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 MLflow can use to connect to the workspace. Azure Machine Learning workspaces **are already configured to work with MLflow** so no extra configuration is required.
21
22
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.
23
+
However, if you work 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.
23
24
24
25
> [!IMPORTANT]
25
-
> When running on Azure Compute (Azure Machine Learning Notebooks, Jupyter notebooks hosted on Azure Machine Learning Compute Instances, or jobs running on Azure Machine Learning compute clusters) you don't have to configure the tracking URI. **It's automatically configured for you**.
26
+
> When running on Azure Compute (Azure Machine Learning Notebooks, Jupyter notebooks hosted on Azure Machine Learning compute instances, or jobs running on Azure Machine Learning compute clusters), you don't have to configure the tracking URI. **It's automatically configured for you**.
26
27
27
28
## Prerequisites
28
29
@@ -39,15 +40,15 @@ To connect MLflow to an Azure Machine Learning workspace, you need the tracking
39
40
40
41
## Configure authentication
41
42
42
-
Once the tracking is set, you'll also need to configure how the authentication needs to happen to the associated workspace. By default, the Azure Machine Learning plugin for MLflow will perform interactive authentication by opening the default browser to prompt for credentials.
43
+
Once the tracking is set, you also need to configure the authentication method for the associated workspace. By default, the Azure Machine Learning plugin for MLflow performs interactive authentication by opening the default browser to prompt for credentials.
43
44
44
45
The Azure Machine Learning plugin for MLflow supports several authentication mechanisms through the package `azure-identity`, which is installed as a dependency for the plugin `azureml-mlflow`. The following authentication methods are tried one by one until one of them succeeds:
45
46
46
-
1.__Environment__: it reads account information specified via environment variables and use it to authenticate.
47
-
1.__Managed Identity__: If the application is deployed to an Azure host with Managed Identity enabled, it authenticates with it.
48
-
1.__Azure CLI__: if a user has signed in via the Azure CLI `az login` command, it authenticates as that user.
49
-
1.__Azure PowerShell__: if a user has signed in via Azure PowerShell's `Connect-AzAccount` command, it authenticates as that user.
50
-
1.__Interactive browser__: it interactively authenticates a user via the default browser.
47
+
1.__Environment__: Reads account information specified via environment variables and uses it to authenticate.
48
+
1.__Managed Identity__: If the application is deployed to an Azure host with Managed Identity enabled, it authenticates with it.
49
+
1.__Azure CLI__: If a user signs in via the Azure CLI `az login` command, it authenticates as that user.
50
+
1.__Azure PowerShell__: If a user signs in via Azure PowerShell's `Connect-AzAccount` command, it authenticates as that user.
51
+
1.__Interactive browser__: Interactively authenticates a user via the default browser.
@@ -56,20 +57,20 @@ If you'd rather use a certificate instead of a secret, you can configure the env
56
57
57
58
### Configure authorization and permission levels
58
59
59
-
Some default roles like [AzureML Data Scientist or contributor](how-to-assign-roles.md#default-roles) are already configured to perform MLflow operations in an Azure Machine Learning workspace. If using a custom roles, you need the following permissions:
60
+
Some [default roles](how-to-assign-roles.md#default-roles)like *AzureML Data Scientist* or *Contributor*are already configured to perform MLflow operations in an Azure Machine Learning workspace. If using a custom role, you need the following permissions:
Grant access for the service principal you created or user account to your workspace as explained at[Grant access](../role-based-access-control/quickstart-assign-role-user-portal.md#grant-access).
69
+
To learn how to grant access for the service principal you created or user account to your workspace, see[Grant access](../role-based-access-control/quickstart-assign-role-user-portal.md#grant-access).
69
70
70
71
### Troubleshooting authentication
71
72
72
-
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:
73
+
MLflow tries to authenticate to Azure Machine Learning on the first operation that interacts 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:
73
74
74
75
```python
75
76
import logging
@@ -87,7 +88,7 @@ All MLflow runs are logged to the active experiment. By default, runs are logged
87
88
88
89
# [MLflow SDK](#tab/mlflow)
89
90
90
-
To configure the experiment you want to work on use MLflow command [`mlflow.set_experiment()`](https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.set_experiment).
91
+
Configure your experiment by using MLflow command [`mlflow.set_experiment()`](https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.set_experiment).
The Azure Machine Learning plugin for MLflow is configured by default to work with the global Azure cloud. However, you can configure the Azure cloud you are using by setting the environment variable `AZUREML_CURRENT_CLOUD`.
110
+
The Azure Machine Learning plugin for MLflow is configured by default to work with the global Azure cloud. However, you can configure the Azure cloud you're using by setting the environment variable `AZUREML_CURRENT_CLOUD`.
0 commit comments