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
Copy file name to clipboardExpand all lines: articles/machine-learning/concept-train-model-git-integration.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ You can clone a repo by using Secure Shell (SSH) protocol. To use SSH, you need
40
40
41
41
### Generate and save a new SSH key
42
42
43
-
To generate a new SSH key, go to the Azure Machine Learning studio **Notebook** page, open a terminal, and run the following command, substituting your email address.
43
+
To generate a new SSH key, you can go to the Azure Machine Learning studio **Notebook** page, open a terminal, and run the following command, substituting your email address.
@@ -66,13 +66,13 @@ When you press Enter, the `ssh-keygen` command generates a new SSH key with the
66
66
67
67
### Add the public key to your Git account
68
68
69
-
In your terminal window, run the following command to display the contents of your public key file. If you renamed the key, replace `id_ed25519.pub` with the public key file name.
69
+
You need to add your public SSH key to your Git account. To get the key, run the following command in your terminal window. If your key file has a different name, replace `id_ed25519.pub` with your public key file name.
70
70
71
71
```bash
72
72
cat ~/.ssh/id_ed25519.pub
73
73
```
74
74
75
-
Copy the output.
75
+
The command displays the contents of your public key file. Copy the output.
76
76
77
77
> [!TIP]
78
78
> To copy and paste in the terminal window, use these keyboard shortcuts, depending on your operating system:
@@ -91,7 +91,7 @@ Add the SSH key to your Git account by using the following instructions, dependi
91
91
92
92
### Clone the Git repository with SSH
93
93
94
-
To clone a Git repo, copy the SSH Git clone URL from the repo. In your terminal, run the `git clone`command using the SSH Git clone URL. For example:
94
+
To clone a Git repo, copy the SSH Git clone URL from the repo. In your terminal, run `git clone`followed by the SSH Git clone URL. For example:
@@ -122,9 +122,9 @@ When you submit a training job from the Python SDK or Machine Learning CLI, the
122
122
123
123
If so, the process uploads Git repository, branch, and current commit information as part of the training job. The information is stored in the following training job properties for jobs that use an estimator, machine learning pipeline, or script run.
124
124
125
-
| Property | Git command used to get the value | Description |
125
+
| Property | Git command to get the value | Description |
126
126
| ----- | ----- | ----- |
127
-
| `azureml.git.repository_uri` or `mlflow.source.git.repoURL` | `git ls-remote --get-url` | The URI that your repository was cloned from. |
127
+
| `azureml.git.repository_uri` or `mlflow.source.git.repoURL` | `git ls-remote --get-url` | The URI that THE repository was cloned from. |
128
128
| `azureml.git.branch` or `mlflow.source.git.branch` | `git symbolic-ref --short HEAD` | The active branch when the job was submitted. |
129
129
| `azureml.git.commit` or `mlflow.source.git.commit` | `git rev-parse HEAD` | The commit hash of the code that was submitted for the job. |
130
130
| `azureml.git.dirty` | `git status --porcelain .` | `True` if the branch or commit is dirty, otherwise `false`. |
@@ -159,14 +159,13 @@ You can view this information by using the Azure portal, Python SDK, or Azure CL
159
159
160
160
### Azure portal
161
161
162
-
In your Azure Machine Learning workspace in Azure Machine Learning studio:
162
+
In your workspace in Azure Machine Learning studio:
163
163
164
164
1. Select the **Jobs** page.
165
165
1. Select an experiment.
166
166
1. Select a job from the **Display name** column.
167
167
1. Select **Outputs + logs** from the top menu.
168
-
1. Expand **logs** > **azureml**.
169
-
1. Select the link that begins with **###_azure**.
168
+
1. Expand **logs** > **azureml**, and then select the link that begins with **###_azure**.
Run the `az ml job show` command with the `--query` argument to display the Git information. For example, the following query retrieves the `GitCommit` property:
180
+
You can run the `az ml job show` command with the `--query` argument to display the Git information. For example, the following query retrieves the `azureml.git.commit` property:
182
181
183
182
```azurecli
184
183
az ml job show --name my-job-id --query "{GitCommit:properties.azureml.git.commit} --resource-group my-resource-group --workspace-name my-workspace"
0 commit comments