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/how-to-manage-registries.md
+71-6Lines changed: 71 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: Create and manage registries (preview)
3
3
titleSuffix: Azure Machine Learning
4
-
description: Learn how create registries with the CLI, Azure portal and Azure Machine Learning Studio
4
+
description: Learn how create registries with the CLI, REST API, Azure portal and Azure Machine Learning Studio
5
5
services: machine-learning
6
6
ms.service: machine-learning
7
7
ms.subservice: mlops
8
-
ms.author: mabables
9
-
author: ManojBableshwar
8
+
ms.author: kritifaujdar
9
+
author: fkriti
10
10
ms.reviewer: larryfr
11
-
ms.date: 09/21/2022
11
+
ms.date: 04/12/2023
12
12
ms.topic: how-to
13
13
ms.custom: devx-track-python, ignite-2022
14
14
---
@@ -66,8 +66,8 @@ Create the YAML definition and name it `registry.yml`.
66
66
67
67
```YAML
68
68
name: DemoRegistry1
69
-
description: Basic registry with one primary region and to additional regions
70
69
tags:
70
+
description: Basic registry with one primary region and to additional regions
71
71
foo: bar
72
72
location: eastus
73
73
replication_locations:
@@ -118,8 +118,73 @@ You can create registries in Azure Machine Learning studio using the following s
118
118
119
119
1. Review the information and select __Create__.
120
120
121
+
122
+
123
+
# [REST API](#tab/rest)
124
+
125
+
You will require the **curl** utility to complete this step. The **curl** program is available in the [Windows Subsystem for Linux](/windows/wsl/install-win10) or any UNIX distribution. In PowerShell, **curl** is an alias for **Invoke-WebRequest** and `curl -d "key=val" -X POST uri` becomes `Invoke-WebRequest -Body "key=val" -Method POST -Uri uri`.
126
+
127
+
You will also require an authentication token for your account to complete the REST API call. You can use below command to retrieve the token:
128
+
129
+
```azurecli
130
+
az account get-access-token
131
+
```
132
+
133
+
The response should provide an access token good for one hour. Make note of the token, as you will use it to authenticate all administrative requests. Below is a sample response:
134
+
135
+
```json
136
+
{
137
+
"access_token": "YOUR-ACCESS-TOKEN",
138
+
"expiresOn": "<expiration-time>",
139
+
"subscription": "<subscription-id>",
140
+
"tenant": "your-tenant-id",
141
+
"tokenType": "Bearer"
142
+
}
143
+
```
144
+
145
+
Run below command to create a registry. You can edit the Json to change the inputs as needed:
0 commit comments