Skip to content

Commit 4eff392

Browse files
authored
Merge pull request #213508 from vkamani21/vkamani-wellbore-tutorial-changes
Modify wellbore tutorial as per feedback
2 parents c0f3a2d + f713ac8 commit 4eff392

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed
175 KB
Loading

articles/energy-data-services/tutorial-wellbore-ddms.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this tutorial, you'll learn how to:
2323

2424
### Microsoft Energy Data Services instance details
2525

26-
* Once the [Microsoft Energy Data Services Preview instance](quickstart-create-microsoft-energy-data-services-instance.md) is created, note down the following details:
26+
* Once the [Microsoft Energy Data Services Preview instance](quickstart-create-microsoft-energy-data-services-instance.md) is created, save the following details:
2727

2828
```Table
2929
| Parameter | Value to use | Example |
@@ -38,20 +38,20 @@ In this tutorial, you'll learn how to:
3838

3939
### Postman setup
4040

41-
* Download and install [Postman](https://www.postman.com/) desktop app
42-
* Import the following files into Postman:
43-
* [Wellbore ddms Postman collection](https://raw.githubusercontent.com/microsoft/meds-samples/main/postman/WellboreDDMS.postman_collection.json)
44-
* [Wellbore ddms Postman Environment](https://raw.githubusercontent.com/microsoft/meds-samples/main/postman/WellboreDDMSEnvironment.postman_environment.json)
41+
1. Download and install [Postman](https://www.postman.com/) desktop app
42+
1. Import the following files into Postman:
43+
1. [Wellbore ddms Postman collection](https://raw.githubusercontent.com/microsoft/meds-samples/main/postman/WellboreDDMS.postman_collection.json)
44+
1. [Wellbore ddms Postman Environment](https://raw.githubusercontent.com/microsoft/meds-samples/main/postman/WellboreDDMSEnvironment.postman_environment.json)
4545

46-
* Update the **CURRENT_VALUE** of the Postman Environment with the information obtained in [Microsoft Energy Data Services instance details](#microsoft-energy-data-services-instance-details)
46+
1. Update the **CURRENT_VALUE** of the Postman Environment with the information obtained in [Microsoft Energy Data Services instance details](#microsoft-energy-data-services-instance-details)
4747

4848
### Executing Postman Requests
4949

50-
* The Postman collection for Wellbore ddms contains requests that allows interaction with wells, wellbore, well log and well trajectory data.
51-
* Make sure to choose the **Wellbore DDMS Environment** before triggering the Postman collection.
50+
1. The Postman collection for Wellbore ddms contains requests that allows interaction with wells, wellbore, well log and well trajectory data.
51+
2. Make sure to choose the **Wellbore DDMS Environment** before triggering the Postman collection.
5252
:::image type="content" source="media/tutorial-wellbore-ddms/tutorial-postman-choose-wellbore-environment.png" alt-text="Choose environment." lightbox="media/tutorial-wellbore-ddms/tutorial-postman-choose-wellbore-environment.png":::
53-
* Each request can be triggered by clicking the **Send** Button.
54-
* On every request Postman will validate the actual API response code against the expected response code; if there's any mismatch the Test Section will indicate failures.
53+
3. Each request can be triggered by clicking the **Send** Button.
54+
4. On every request Postman will validate the actual API response code against the expected response code; if there's any mismatch the Test Section will indicate failures.
5555

5656
**Successful Postman Call**
5757

@@ -61,13 +61,25 @@ In this tutorial, you'll learn how to:
6161

6262
:::image type="content" source="media/tutorial-wellbore-ddms/tutorial-postman-test-failure.png" alt-text="Screenshot-of-Failure." lightbox="media/tutorial-wellbore-ddms/tutorial-postman-test-failure.png":::
6363

64-
### Utilize Wellbore ddms APIs to store and retrieve wellbore and well log data
64+
### Generate a token
6565

66-
1. **Get an SPN Token** - Generate the Service Principal Bearer token, which will be used to authenticate further API calls.
67-
2. **Create a Legal Tag** - Create a legal tag that will be added automatically to the environment for data compliance purpose.
68-
3. **Create Well** - Creates the wellbore record in Microsoft Energy Data Services instance.
66+
1. **Get a Token** - Import the CURL command in Postman to generate the bearer token. Update the bearerToken in wellbore ddms environment. Use Bearer Token as Authorization type in other API calls.
67+
```bash
68+
curl --location --request POST 'https://login.microsoftonline.com/{{TENANT_ID}}/oauth2/v2.0/token' \
69+
--header 'Content-Type: application/x-www-form-urlencoded' \
70+
--data-urlencode 'grant_type=client_credentials' \
71+
--data-urlencode 'client_id={{CLIENT_ID}}' \
72+
--data-urlencode 'client_secret={{CLIENT_SECRET}}' \
73+
--data-urlencode 'scope={{SCOPE}}'
74+
```
75+
:::image type="content" source="media/tutorial-wellbore-ddms/tutorial-of-the-wellbore-generate-token.png" alt-text="Screenshot of the wellbore generate token." lightbox="media/tutorial-wellbore-ddms/tutorial-of-the-wellbore-generate-token.png":::
76+
77+
## Store and retrieve Wellbore and Well Log data with Wellbore ddms APIs
78+
79+
1. **Create a Legal Tag** - Create a legal tag that will be added automatically to the environment for data compliance purpose.
80+
2. **Create Well** - Creates the wellbore record in Microsoft Energy Data Services instance.
6981
:::image type="content" source="media/tutorial-wellbore-ddms/tutorial-create-well.png" alt-text="Screenshot of creating a Well." lightbox="media/tutorial-wellbore-ddms/tutorial-create-well.png":::
70-
4. **Get Wells** - Returns the well data created in the last step.
82+
3. **Get Wells** - Returns the well data created in the last step.
7183
:::image type="content" source="media/tutorial-wellbore-ddms/tutorial-get-wells.png" alt-text="Screenshot of getting all wells." lightbox="media/tutorial-wellbore-ddms/tutorial-get-wells.png":::
7284
1. **Get Well Versions** - Returns the versions of each ingested well record.
7385
:::image type="content" source="media/tutorial-wellbore-ddms/tutorial-get-well-versions.png" alt-text="Screenshot of getting all Well versions." lightbox="media/tutorial-wellbore-ddms/tutorial-get-well-versions.png":::

0 commit comments

Comments
 (0)