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/energy-data-services/tutorial-csv-ingestion.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ Comma-separated values (CSV) parser ingestion provides the capability to ingest
18
18
19
19
In this tutorial, you learn how to:
20
20
21
-
> * Ingest a sample wellbore data CSV file into an Azure Data Manager for Energy instance by using `curl`.
22
-
> * Search for storage metadata records created during CSV ingestion by using `curl`.
21
+
> * Ingest a sample wellbore data CSV file into an Azure Data Manager for Energy instance by using `cURL`.
22
+
> * Search for storage metadata records created during CSV ingestion by using `cURL`.
23
23
24
24
## Prerequisites
25
25
* An Azure subscription
@@ -33,24 +33,24 @@ In this tutorial, you learn how to:
33
33
34
34
| Parameter | Value to use | Example | Where to find this value |
35
35
|----|----|----|----|
36
-
|`DNS`| URI |`<instance>.energy.Azure.com`| Find this value on the overview page of the Azure Data Manager for Energy instance. |
37
-
|`data-partition-id`| Data partitions |`<data-partition-id>`| Find this value on the Data Partitions page of the Azure Data Manager for Energy instance. |
36
+
|`DNS`| URI |`<instance>.energy.azure.com`| Find this value on the overview page of the Azure Data Manager for Energy instance. |
37
+
|`data-partition-id`| Data partitions |`<data-partition-id>`| Find this value on the Data Partitions section within the Azure Data Manager for Energy instance. |
38
38
|`access_token`| Access token value |`0.ATcA01-XWHdJ0ES-qDevC6r...........`| Follow [How to generate auth token](how-to-generate-auth-token.md) to create an access token and save it.|
39
39
40
40
Follow the [Manage users](how-to-manage-users.md) guide to add appropriate entitlements for the user who's running this tutorial.
41
41
42
42
### Set up your environment
43
43
44
-
Ensure you have `curl` installed on your system. You will use it to make API calls.
44
+
Ensure you have `cURL` installed on your system. You will use it to make API calls.
45
45
46
-
## Ingest wellbore data by using `curl`
46
+
## Ingest wellbore data by using `cURL`
47
47
48
48
To ingest a sample wellbore data CSV file into the Azure Data Manager for Energy instance, complete the following steps:
49
49
Replace the placeholders (`<DNS>`, `<access_token>`, etc.) with the appropriate values.
50
50
51
51
### 1. Create a Schema
52
52
53
-
Run the following `curl` command to create a schema:
53
+
Run the following `cURL` command to create a schema:
54
54
55
55
```bash
56
56
curl -X POST "https://<DNS>/api/schema-service/v1/schema" \
@@ -94,7 +94,7 @@ Save the `id` from the response for use in subsequent steps.
94
94
95
95
### 2. Create a Legal Tag
96
96
97
-
Run the following `curl` command to create a legal tag:
97
+
Run the following `cURL` command to create a legal tag:
98
98
99
99
```bash
100
100
curl -X POST "https://<DNS>/api/legal/v1/legaltags" \
@@ -127,7 +127,7 @@ curl -X POST "https://<DNS>/api/legal/v1/legaltags" \
127
127
128
128
### 3. Get a Signed URL for Uploading a CSV File
129
129
130
-
Run the following `curl` command to get a signed URL:
130
+
Run the following `cURL` command to get a signed URL:
131
131
132
132
```bash
133
133
curl -X GET "https://<DNS>/api/file/v2/files/uploadURL" \
@@ -147,7 +147,7 @@ Save the `SignedURL` and `FileSource` from the response for use in the next step
147
147
148
148
### 4. Upload a CSV File
149
149
150
-
Download the [Wellbore.csv](https://github.com/microsoft/meds-samples/blob/main/test-data/wellbore.csv) sample to your local machine. Then, run the following `curl` command to upload the file:
150
+
Download the [Wellbore.csv](https://github.com/microsoft/meds-samples/blob/main/test-data/wellbore.csv) sample to your local machine. Then, run the following `cURL` command to upload the file:
151
151
152
152
```bash
153
153
curl -X PUT -T "Wellbore.csv""<SignedURL>" -H "x-ms-blob-type: BlockBlob"
0 commit comments