Skip to content

Commit 26cd973

Browse files
authored
Merge pull request #211125 from ssalgadodev/gitintegration
Changes to v1 toc to move git integration
2 parents b44ef0e + a6915e1 commit 26cd973

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

articles/machine-learning/concept-train-model-git-integration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ The logged information contains text similar to the following JSON:
179179
}
180180
```
181181
182+
### Python SDK
183+
184+
After submitting a training run, a [Run](/python/api/azureml-core/azureml.core.run%28class%29) object is returned. The `properties` attribute of this object contains the logged git information. For example, the following code retrieves the commit hash:
185+
186+
[!INCLUDE [sdk v1](../../includes/machine-learning-sdk-v1.md)]
187+
188+
```python
189+
run.properties['azureml.git.commit']
190+
```
182191
183192
## Next steps
184193

articles/machine-learning/toc.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,6 @@
388388
- name: Connect to compute instance VS Code
389389
displayName: Visual Studio Code, VSCode, debug, bugs
390390
href: how-to-set-up-vs-code-remote.md
391-
- name: Git integration
392-
displayName: github gitlab
393-
href: concept-train-model-git-integration.md
394391
- name: Manage environments with the CLI (v2)
395392
displayName: environment
396393
href: how-to-manage-environments-v2.md

articles/machine-learning/v1/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
- name: Manage resources VS Code
7676
displayName: vscode,resources
7777
href: ../how-to-manage-resources-vscode.md
78+
- name: Git integration
79+
displayName: github gitlab
80+
href: ../concept-train-model-git-integration.md
7881
- name: Tutorials (v1)
7982
expanded: true
8083
items:

0 commit comments

Comments
 (0)