Skip to content

Commit 65959ee

Browse files
Formatting.
1 parent 33f5dee commit 65959ee

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

articles/machine-learning/how-to-use-mlflow-azure-databricks.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -113,65 +113,65 @@ Configure the MLflow tracking URI to point exclusively to Azure Machine Learning
113113

114114
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
115115

116-
1. Sign in and configure your workspace:
116+
1. Sign in and configure your workspace:
117117

118-
```bash
119-
az account set --subscription <subscription>
120-
az configure --defaults workspace=<workspace> group=<resource-group> location=<location>
121-
```
118+
```bash
119+
az account set --subscription <subscription>
120+
az configure --defaults workspace=<workspace> group=<resource-group> location=<location>
121+
```
122122

123-
1. You can get the tracking URI using the `az ml workspace` command:
123+
1. You can get the tracking URI using the `az ml workspace` command:
124124

125-
```bash
126-
az ml workspace show --query mlflow_tracking_uri
127-
```
125+
```bash
126+
az ml workspace show --query mlflow_tracking_uri
127+
```
128128

129129
# [Python](#tab/python)
130130

131131
[!INCLUDE [sdk v2](includes/machine-learning-sdk-v2.md)]
132132

133133
You can get the Azure Machine Learning MLflow tracking URI using the [Azure Machine Learning SDK v2 for Python](concept-v2.md). Ensure you have the library `azure-ai-ml` installed in the compute you're using. The following sample gets the unique MLFLow tracking URI associated with your workspace.
134134
135-
1. Sign in into your workspace using the `MLClient`. The easier way to do that is by using the workspace config file:
135+
1. Sign in into your workspace using the `MLClient`. The easier way to do that is by using the workspace config file:
136136
137-
```python
138-
from azure.ai.ml import MLClient
139-
from azure.identity import DefaultAzureCredential
137+
```python
138+
from azure.ai.ml import MLClient
139+
from azure.identity import DefaultAzureCredential
140140
141141
ml_client = MLClient.from_config(credential=DefaultAzureCredential())
142-
```
142+
```
143143
144-
> [!TIP]
145-
> To download the workspace configuration file:
146-
>
147-
> 1. Navigate to [Azure Machine Learning studio](https://ml.azure.com)
148-
> 1. Click on the upper-right corner of the page -> Download config file.
149-
> 1. Save the file `config.json` in the same directory where you are working on.
144+
> [!TIP]
145+
> To download the workspace configuration file:
146+
>
147+
> 1. Navigate to [Azure Machine Learning studio](https://ml.azure.com).
148+
> 1. Select the upper-right corner of the page > **Download config file**.
149+
> 1. Save the file `config.json` in the same directory where you are working.
150150
151-
Alternatively, you can use the subscription ID, resource group name, and workspace name to get it:
151+
Alternatively, you can use the subscription ID, resource group name, and workspace name to get it:
152152
153-
```python
154-
from azure.ai.ml import MLClient
155-
from azure.identity import DefaultAzureCredential
153+
```python
154+
from azure.ai.ml import MLClient
155+
from azure.identity import DefaultAzureCredential
156156
157-
#Enter details of your Azure Machine Learning workspace
158-
subscription_id = '<SUBSCRIPTION_ID>'
159-
resource_group = '<RESOURCE_GROUP>'
160-
workspace_name = '<WORKSPACE_NAME>'
157+
#Enter details of your Azure Machine Learning workspace
158+
subscription_id = '<SUBSCRIPTION_ID>'
159+
resource_group = '<RESOURCE_GROUP>'
160+
workspace_name = '<WORKSPACE_NAME>'
161161
162-
ml_client = MLClient(credential=DefaultAzureCredential(),
163-
subscription_id=subscription_id,
164-
resource_group_name=resource_group)
165-
```
162+
ml_client = MLClient(credential=DefaultAzureCredential(),
163+
subscription_id=subscription_id,
164+
resource_group_name=resource_group)
165+
```
166166
167-
> [!IMPORTANT]
168-
> `DefaultAzureCredential` tries to pull the credentials from the available context. If you want to specify credentials in a different way, for instance using the web browser in an interactive way, you can use `InteractiveBrowserCredential` or any other method available in [`azure.identity`](https://pypi.org/project/azure-identity/) package.
167+
> [!IMPORTANT]
168+
> `DefaultAzureCredential` tries to pull the credentials from the available context. If you want to specify credentials in a different way, for instance using the web browser in an interactive way, you can use `InteractiveBrowserCredential` or any other method available in [`azure.identity`](https://pypi.org/project/azure-identity/) package.
169169
170-
1. Get the Azure Machine Learning Tracking URI:
170+
1. Get the Azure Machine Learning Tracking URI:
171171
172-
```python
173-
mlflow_tracking_uri = ml_client.workspaces.get(ml_client.workspace_name).mlflow_tracking_uri
174-
```
172+
```python
173+
mlflow_tracking_uri = ml_client.workspaces.get(ml_client.workspace_name).mlflow_tracking_uri
174+
```
175175
176176
# [Studio](#tab/studio)
177177

0 commit comments

Comments
 (0)