Skip to content

Commit e2dd742

Browse files
authored
Merge pull request #108174 from PatAltimore/patricka-blockchain-bdm
Use devkit interaction page for blockchain data manager tutorial
2 parents 73b0749 + df486a2 commit e2dd742

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

articles/blockchain/service/data-manager-cosmosdb.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Use Blockchain Data Manager to update Azure Cosmos DB - Azure Blockchain Service
33
description: Use Blockchain Data Manager for Azure Blockchain Service to send blockchain data to Azure Cosmos DB
4-
ms.date: 12/04/2019
4+
ms.date: 03/08/2020
55
ms.topic: tutorial
66
ms.reviewer: chroyal
77
#Customer intent: As a developer, I want to use Blockchain Data Manager to send blockchain data to Azure Cosmos DB
88
---
99
# Tutorial: Use Blockchain Data Manager to send data to Azure Cosmos DB
1010

11-
In this tutorial, you use Blockchain Data Manager for Azure Blockchain Service to record blockchain transaction data in Azure Cosmos DB. Blockchain Data Manager captures, transforms, and delivers blockchain ledger data to Azure Event Grid Topics. From Azure Event Grid, you use a Azure Logic App connector to create documents in an Azure Cosmos DB database. When finished with tutorial, you can explore blockchain transaction data in Azure Cosmos DB Data Explorer.
11+
In this tutorial, you use Blockchain Data Manager for Azure Blockchain Service to record blockchain transaction data in Azure Cosmos DB. Blockchain Data Manager captures, transforms, and delivers blockchain ledger data to Azure Event Grid Topics. From Azure Event Grid, you use an Azure Logic App connector to create documents in an Azure Cosmos DB database. When finished with tutorial, you can explore blockchain transaction data in Azure Cosmos DB Data Explorer.
1212

1313
[![Blockchain transaction detail](./media/data-manager-cosmosdb/raw-msg.png)](./media/data-manager-cosmosdb/raw-msg.png#lightbox)
1414

@@ -242,17 +242,17 @@ The logic app monitors the Event Grid Topic. When a new transaction message is s
242242
243243
## Send a transaction
244244
245-
Next, send a transaction to the blockchain ledger to test what you created. Use the **sendrequest.js** script you created in the prerequisite [Tutorial: Use Visual Studio Code to create, build, and deploy smart contracts](send-transaction.md).
245+
Next, send a transaction to the blockchain ledger to test what you created. Use the **HelloBlockchain** contract's **SendRequest** function you created in the prerequisite [Tutorial: Use Visual Studio Code to create, build, and deploy smart contracts](send-transaction.md).
246246
247-
In VS Code's terminal pane, use Truffle to execute the script on your consortium blockchain network. In the terminal pane menu bar, select the **Terminal** tab and **PowerShell** in the dropdown.
247+
1. Use the Azure Blockchain Development Kit smart contract interaction page to call the **SendRequest** function. Right-click **HelloBlockchain.sol** and choose **Show Smart Contract Interaction Page** from the menu.
248248
249-
``` PowerShell
250-
truffle exec sendrequest.js --network <blockchain network>
251-
```
249+
![Choose Show Smart Contract Interaction Page from menu](./media/data-manager-cosmosdb/contract-interaction.png)
252250
253-
Replace \<blockchain network\> with the name of the blockchain network defined in the **truffle-config.js**.
251+
1. Choose **SendRequest** contract action and enter **Hello, Blockchain!** for the **requestMessage** parameter. Select **Execute** to call the **SendRequest** function via a transaction.
254252
255-
![Send transaction](./media/data-manager-cosmosdb/send-request.png)
253+
![Execute SendRequest action](./media/data-manager-cosmosdb/sendrequest-action.png)
254+
255+
The SendRequest function sets the **RequestMessage** and **State** fields. The current state for **RequestMessage** is the argument you passed **Hello, Blockchain**. The **State** field value remains **Request**.
256256
257257
## View transaction data
258258
83.2 KB
Loading
Binary file not shown.
81.8 KB
Loading

0 commit comments

Comments
 (0)