Skip to content

Commit ff279a2

Browse files
authored
Update how-to-use-mlflow-configure-tracking.md
1 parent 549ca0b commit ff279a2

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

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

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You will need the following prerequisites to follow this tutorial:
3535

3636
To connect MLflow to an Azure Machine Learning workspace you will need the tracking URI for the workspace. Each workspace has its own tracking URI and it has the protocol `azureml://`.
3737

38-
[!INCLUDE [cli v2](../../includes/machine-learning-mlflow-configure-tracking.md)]
38+
[!INCLUDE [mlflow-configure-tracking](../../includes/machine-learning-mlflow-configure-tracking.md)]
3939

4040
## Configure authentication
4141

@@ -49,7 +49,7 @@ The Azure Machine Learning plugin for MLflow supports several authentication mec
4949
1. __Azure PowerShell__: if a user has signed in via Azure PowerShell's `Connect-AzAccount` command, it will authenticate as that user.
5050
1. __Interactive browser__: it will interactively authenticate a user via the default browser.
5151

52-
[!INCLUDE [cli v2](../../includes/machine-learning-mlflow-configure-auth.md)]
52+
[!INCLUDE [mlflow-configure-auth](../../includes/machine-learning-mlflow-configure-auth.md)]
5353

5454
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
5555
`AZURE_CLIENT_CERTIFICATE_PASSWORD` with the password of the certificate file, if any.
@@ -91,6 +91,34 @@ export MLFLOW_EXPERIMENT_NAME="experiment_with_mlflow"
9191

9292
---
9393

94+
## Non-public Azure Clouds support
95+
96+
The Azure Machine Learning plugin for MLflow is configured by default to work to public Azure cloud. However, you can configure the Azure cloud you are using by setting the environment variable `AZUREML_CURRENT_CLOUD`.
97+
98+
# [MLflow SDK](#tab/mlflow)
99+
100+
```Python
101+
import os
102+
103+
os.environ["AZUREML_CURRENT_CLOUD"] = "AzureChinaCloud"
104+
```
105+
106+
# [Using environment variables](#tab/environ)
107+
108+
```bash
109+
export AZUREML_CURRENT_CLOUD="AzureChinaCloud"
110+
```
111+
112+
---
113+
114+
You can identify the cloud you are using with the following Azure CLI command:
115+
116+
```bash
117+
az cloud list
118+
```
119+
120+
The current cloud used is has the value `IsActive` set to `True`.
121+
94122
## Next steps
95123

96124
Now that your environment is connected to your workspace in Azure Machine Learning, you can start to work with it.

0 commit comments

Comments
 (0)