|
| 1 | +--- |
| 2 | +title: Use Azure Blockchain Development Kit for Ethereum to connect to Azure Blockchain Service |
| 3 | +description: Connect to an Azure Blockchain Service consortium network using the Azure Blockchain Development Kit for Ethereum extension in Visual Studio Code |
| 4 | +services: azure-blockchain |
| 5 | +keywords: |
| 6 | +author: PatAltimore |
| 7 | +ms.author: patricka |
| 8 | +ms.date: 09/10/2019 |
| 9 | +ms.topic: quickstart |
| 10 | +ms.service: azure-blockchain |
| 11 | +ms.reviewer: chrisseg |
| 12 | +manager: femila |
| 13 | +#Customer intent: As a developer, I want to connect to my blockchain consortium so that I can perform actions on a blockchain. |
| 14 | +--- |
| 15 | + |
| 16 | +# Quickstart: Use Visual Studio Code to connect to an Azure Blockchain Service consortium network |
| 17 | + |
| 18 | +In this quickstart, you install and use the Azure Blockchain Development Kit for Ethereum Visual Studio Code extension to attach to a consortium on Azure Blockchain Service. The Azure Blockchain Development Kit simplifies how you create, connect, build, and deploy smart contracts on Ethereum ledgers. |
| 19 | + |
| 20 | +[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)] |
| 21 | + |
| 22 | +## Prerequisites |
| 23 | + |
| 24 | +* Complete [Quickstart: Create a blockchain member using the Azure portal](create-member.md) or [Quickstart: Create an Azure Blockchain Service blockchain member using Azure CLI](create-member-cli.md) |
| 25 | +* [Visual Studio Code](https://code.visualstudio.com/Download) |
| 26 | +* [Azure Blockchain Development Kit for Ethereum extension](https://marketplace.visualstudio.com/items?itemName=AzBlockchain.azure-blockchain) |
| 27 | +* [Node.js](https://nodejs.org) |
| 28 | +* [Git](https://git-scm.com) |
| 29 | +* [Python](https://www.python.org/downloads/release/python-2715/). Add python.exe to your path. Python in your path is required for Azure Blockchain Development Kit. |
| 30 | +* [Truffle](https://www.trufflesuite.com/docs/truffle/getting-started/installation) |
| 31 | +* [Ganache CLI](https://github.com/trufflesuite/ganache-cli) |
| 32 | + |
| 33 | +### Verify Azure Blockchain Development Kit environment |
| 34 | + |
| 35 | +Azure Blockchain Development Kit verifies your development environment prerequisites have been met. To verify your development environment: |
| 36 | + |
| 37 | +From the VS Code command palette, choose **Azure Blockchain: Show Welcome Page**. |
| 38 | + |
| 39 | +Azure Blockchain Development Kit runs a validation script that takes about a minute to complete. You can view the output by selecting **Terminal > New Terminal**. In the terminal menu bar, select the **Output** tab and **Azure Blockchain** in the dropdown. Successful validation looks like the following image: |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + If you are missing a required tool, a new tab named **Azure Blockchain Development Kit - Preview** lists the required apps to install and links to download the tools. |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +Install any missing prerequisites before continuing with the quickstart. |
| 48 | + |
| 49 | +## Connect to consortium member |
| 50 | + |
| 51 | +You can connect to consortium members using the Azure Blockchain Development Kit VS Code extension. Once connected to a consortium, you can compile, build, and deploy smart contracts to an Azure Blockchain Service consortium member. |
| 52 | + |
| 53 | +If you don't have access to an Azure Blockchain Service consortium member, complete the prerequisite [Quickstart: Create a blockchain member using the Azure portal](create-member.md) or [Quickstart: Create an Azure Blockchain Service blockchain member using Azure CLI](create-member-cli.md). |
| 54 | + |
| 55 | +1. In the Visual Studio Code (VS Code) explorer pane, expand the **Azure Blockchain** extension. |
| 56 | +1. Select **Connect to Consortium**. |
| 57 | + |
| 58 | +  |
| 59 | + |
| 60 | + If prompted for Azure authentication, follow the prompts to authenticate using a browser. |
| 61 | +1. Choose **Connect to Azure Blockchain Service consortium** in the command palette dropdown. |
| 62 | +1. Choose the subscription and resource group associated with your Azure Blockchain Service consortium member. |
| 63 | +1. Choose your consortium from the list. |
| 64 | + |
| 65 | +The consortium and blockchain members are listed in the Visual Studio explorer side bar. |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +## Next steps |
| 70 | + |
| 71 | +In this quickstart, you used Azure Blockchain Development Kit for Ethereum Visual Studio Code extension to attach to a consortium on Azure Blockchain Service. Try the next tutorial to use Azure Blockchain Development Kit for Ethereum and Truffle to create, build, deploy, and execute a smart contract function via a transaction. |
| 72 | + |
| 73 | +> [!div class="nextstepaction"] |
| 74 | +> [Use Visual Studio Code to create, build, and deploy smart contracts](send-transaction.md) |
0 commit comments