Skip to content

Commit 5adbda3

Browse files
Merge pull request #247364 from Court72/stage-public-113153
Stage public 113153
2 parents 7d39d9f + 8261ea0 commit 5adbda3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

articles/azure-maps/how-to-create-data-registries.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,42 @@ Now that you have your storage account with the desired files linked to your Azu
200200

201201
> [!NOTE]
202202
> The maximum size of a file that can be registered with an Azure Maps datastore is one gigabyte.
203+
203204
To create a data registry:
204205

206+
# [system-assigned](#tab/System-assigned)
207+
208+
1. Provide the information needed to reference the storage account that is being added to the data registry in the body of your HTTP request. The information must be in JSON format and contain the following fields:
209+
210+
```json
211+
{
212+
"kind": "AzureBlob",
213+
"azureBlob": {
214+
"dataFormat": "geojson",
215+
"linkedResource": "{datastore ID}",
216+
"blobUrl": "https://teststorageaccount.blob.core.windows.net/testcontainer/test.geojson"
217+
}
218+
}
219+
```
220+
221+
> [!NOTE]
222+
> When using System-assigned managed identities, you will get an error if you provide a value for the msiClientId property in your HTTP request.
223+
224+
For more information on the properties required in the HTTP request body, see [Data registry properties](#data-registry-properties).
225+
226+
1. Once you have the body of your HTTP request ready, execute the following **HTTP PUT request**:
227+
228+
```http
229+
https://us.atlas.microsoft.com/dataRegistries/{udid}?api-version=2023-06-01&subscription-key={Your-Azure-Maps-Subscription-key}
230+
231+
```
232+
233+
For more information on the `udid` property, see [The user data ID](#the-user-data-id).
234+
235+
1. Copy the value of the **Operation-Location** key from the response header.
236+
237+
# [user-assigned](#tab/User-assigned)
238+
205239
1. Provide the information needed to reference the storage account that is being added to the data registry in the body of your HTTP request. The information must be in JSON format and contain the following fields:
206240

207241
```json
@@ -216,6 +250,9 @@ To create a data registry:
216250
}
217251
```
218252

253+
> [!NOTE]
254+
> When using User-assigned managed identities, you will get an error if you don't provide a value for the msiClientId property in your HTTP request.
255+
219256
For more information on the properties required in the HTTP request body, see [Data registry properties](#data-registry-properties).
220257

221258
1. Once you have the body of your HTTP request ready, execute the following **HTTP PUT request**:
@@ -229,6 +266,8 @@ To create a data registry:
229266

230267
1. Copy the value of the **Operation-Location** key from the response header.
231268

269+
---
270+
232271
> [!TIP]
233272
> If the contents of a previously registered file is modified, it will fail its [data validation](#data-validation) and won't be usable in Azure Maps until it's re-registered. To re-register a file, rerun the register request, passing in the same [AzureBlob](#the-azureblob) used to create the original registration.
234273
The value of the **Operation-Location** key is the status URL that you'll use to check the status of the data registry creation in the next section, it contains the operation ID used by the [Get operation][Get operation] API.

0 commit comments

Comments
 (0)