Skip to content

Commit c913850

Browse files
authored
Merge pull request #41798 from PatAltimore/patricka-converted-articles-blockchain-
Add converted TechNet articles
2 parents 3f1025d + abea9c8 commit c913850

38 files changed

+524
-0
lines changed

articles/blockchain-workbench/TOC.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@
5050
href: blockchain-workbench-messages-overview.md
5151
- name: REST API
5252
href: https://docs.microsoft.com/rest/api/azure-blockchain-workbench
53+
- name: Solution templates
54+
items:
55+
- name: Ethereum proof-of-work consortium
56+
href: ethereum-deployment-guide.md
57+
- name: Hyperledger Fabric consortium
58+
href: hyperledger-fabric-single-member-blockchain.md

articles/blockchain-workbench/ethereum-deployment-guide.md

Lines changed: 377 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
---
2+
title: Hyperledger Fabric Consortium
3+
description: Use the Hyperledger Fabric Consortium solution template to deploy and configure a single member network
4+
services: azure-blockchain
5+
keywords:
6+
author: PatAltimore
7+
ms.author: patricka
8+
ms.date: 5/21/2018
9+
ms.topic: article
10+
ms.service: azure-blockchain
11+
ms.reviewer: zeyadr
12+
manager: femila
13+
---
14+
# Hyperledger Fabric single member network
15+
16+
You can use the Hyperledger Fabric Consortium solution template to deploy and configure a Hyperledger Fabric single member (multi-node) network.
17+
18+
After reading this article, you will:
19+
20+
- Obtain working knowledge of blockchain, Hyperledger Fabric, and more complicated consortium network architectures
21+
- Learn how to deploy and configure a single-member Hyperledger Fabric consortium network from within the Azure portal
22+
23+
## About blockchain
24+
25+
If you are new to the blockchain community, this is a great opportunity to learn about the technology in an easy and configurable manner on Azure. Blockchain is the underlying technology behind Bitcoin; however, it is much more than just an enabler for a virtual currency. It is a composite of existing database, distributed system, and cryptographic technologies that enables secure multi-party computation with guarantees around immutability, verifiability, auditability, and resiliency to attack. Different protocols employ different mechanisms to provide these attributes. [Hyperledger Fabric](https://github.com/hyperledger/fabric) is one such protocol.
26+
27+
## Consortium architecture on Azure
28+
29+
This template deploys a topology to help test and simulate production for users within a single organization (single member). This deployment comprises of a multi-node network in a single region, soon to be expanded to multiple regions.
30+
31+
The network comprises of three types of nodes:
32+
33+
1. **Member Node** : A node running the Fabric membership service that registers and manages members of the network. This node can eventually be clustered for scalability and high availability, however in this lab, a single member node will be used.
34+
2. **Orderer Nodes** : A node running the communication service implementing a delivery guarantee, such as total order broadcast or atomic transactions.
35+
3. **Peer Nodes** : A node that commits transactions and maintains the state and a copy of the distributed ledger.
36+
37+
## Getting started
38+
39+
To begin, you will need an Azure subscription that can support deploying several virtual machines and standard storage accounts. If you do not have an Azure subscription, you can [create a free Azure account](https://azure.microsoft.com/free/).
40+
41+
By default, most subscription types support a small deployment topology without needing to increase quota. The smallest possible deployment for one member will need:
42+
43+
- 5 virtual machines (5 cores)
44+
- 1 VNet
45+
- 1 load balancer
46+
- 1 public IP address
47+
48+
Once you have a subscription, go to the [Azure portal](https://portal.azure.com). Select **+**, select Blockchain, and select **Hyperledger Fabric Single Member Blockchain**.
49+
50+
![Hyperledger Fabric Single Member Blockchain Marketplace template](./media/hyperledger-fabric-single-member-blockchain/marketplace-template.png)
51+
52+
## Deployment
53+
54+
To start, select the **Hyperledger Fabric Single Member Blockchain** and click **Create**. This will open the **Basics** blade in the wizard.
55+
56+
The Template Deployment will walk you through configuring the multi-node network. The deployment flow is divided into three steps: Basics, Network configuration, and Fabric configuration.
57+
58+
### Basics
59+
60+
Under the **Basics** blade, specify values for standard parameters for any deployment, such as subscription, resource group, and basic virtual machine properties.
61+
62+
![Basics](./media/hyperledger-fabric-single-member-blockchain/basics.png)
63+
64+
Parameter Name| Description| Allowed Values|Default Value
65+
---|---|---|---
66+
**Resource prefix**| A string used as a base for naming the deployed resources.|6 characters or less|NA
67+
**VM user name**| The user name of the administrator for each of the virtual machines deployed for this member.|1 - 64 characters|azureuser
68+
**Authentication type**| The method to authenticate to the virtual machine.|Password or SSH public key|Password
69+
**Password (Authentication type = Password)**|The password for the administrator account for each of the virtual machines deployed. The password must contain 3 of the following: 1 upper case character, 1 lower case character, 1 number, and 1 special character.<br /><br />While all VMs initially have the same password, you can change the password after provisioning.|12 - 72 characters|NA
70+
**SSH Key (Authentication type = Public Key)**|The secure shell key used for remote login.||NA
71+
**Restrict access by IP address**|Setting to determine type whether client endpoint access is restricted or not.|Yes/No| No
72+
**Allowed IP address or subnet (restrict access by IP address = Yes)**|The IP address or the set of IP addresses that is allowed to access the client endpoint when access control is enabled.||NA
73+
**Subscription** |The subscription to which to deploy.
74+
**Resource Group** |The resource group to which to deploy the consortium network.||NA
75+
**Location** |The Azure region to which to deploy the first member**s network footprint.
76+
77+
### Network size and performance
78+
79+
Next, under **Network size and performance,** specify inputs for the size of the consortium network, such as the number of membership, orderer, and peer nodes. Choose infrastructure options and your virtual machine size.
80+
81+
![Network size and performance](./media/hyperledger-fabric-single-member-blockchain/network-size-performance.png)
82+
83+
Parameter Name| Description| Allowed Values|Default Value
84+
---|---|---|---
85+
**Number of Membership Nodes**|The number of nodes that run the membership service. For additional details on the membership service, look at Security & Membership Services under the Hyperledger [documentation](https://media.readthedocs.org/pdf/hyperledger-fabric/latest/hyperledger-fabric.pdf).<br /><br />This value is currently restricted to 1 node, but we plan to support scale out through clustering in the next revision.|1| 1
86+
**Number of Orderer Nodes** |The number of nodes that order (organize) transactions into a block.--> This statement is wordy and confusing. For additional details on the ordering service, visit the Hyperledger [documentation](http://hyperledger-fabric.readthedocs.io/en/latest/orderingservice.html).<br /><br />This value is currently restricted to 1 node, but we plan to support scale out in the next version.|1 |1
87+
**Number of Peer Nodes**| Nodes that are owned by consortium members that execute transactions and maintain the state and a copy of the ledger.<br /><br />For additional details on the ordering service, visit the Hyperledger [documentation](https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html).|3| 3 - 9
88+
**Storage performance**|The type of storage backing each of the deployed nodes. To learn more about storage, visit [Introduction to Microsoft Azure Storage](https://docs.microsoft.com/azure/storage/common/storage-introduction) and [Premium Storage](https://docs.microsoft.com/azure/virtual-machines/windows/premium-storage).|Standard or Premium|Standard
89+
**Virtual machine size** |The virtual machine size used for all nodes in the network|Standard A,<br />Standard D,<br />Standard D-v2,<br />Standard F series,<br />Standard DS,<br />and Standard FS|Standard D1_v2
90+
91+
### Fabric specific settings
92+
93+
Finally, under **Fabric Settings**, specify Fabric-related configuration settings.
94+
95+
![Fabric settings](./media/hyperledger-fabric-single-member-blockchain/fabric-settings.png)
96+
97+
Parameter Name| Description| Allowed Values|Default Value
98+
---|---|---|---
99+
**Bootstrap User Name**| The initial authorized user that will be registered with the member services in the deployed network.|9 or fewer characters|admin
100+
**Bootstrap User Password for Fabric CA**|The administrator password used to secure the Fabric CA account imported into the Membership node.<br /><br />The password must contain the following: 1 upper case character, 1 lower case character, and 1 number.|12 or more characters|NA
101+
102+
### Deploy
103+
104+
In **Summary**, review the inputs specified and to run basic pre-deployment validation.
105+
106+
![Summary](./media/hyperledger-fabric-single-member-blockchain/summary.png)
107+
108+
Review legal and privacy terms and click **Purchase** to deploy. Depending on the number of VMs being provisioned, deployment time can vary from a few minutes to tens of minutes.
109+
110+
### Accessing nodes
111+
112+
Once the deployment is finished, an **Overview** is displayed.
113+
114+
![Deployments](./media/hyperledger-fabric-single-member-blockchain/deployments.png)
115+
116+
If the screen does not appear automatically (maybe because you moved around the management portal while the deployment was running), you can always find it in the Resource Groups tab in the left-side navigation bar. Click on the Resource Group name you entered in step 1 to go to the **Overview** page.
117+
118+
Overview lists all of the resources that were deployed by the solution template. You can explore them at will, but from this screen you can also access the _output parameters_ generated by the template. These output parameters will give you useful information when connecting to your Hyperledger Fabric network.
119+
120+
To access the output parameters, first click on the Deployments tab in the Resource Group blade. This opens the Deployment History as shown below.
121+
122+
![Deployment history](./media/hyperledger-fabric-single-member-blockchain/deployment-history.png)
123+
124+
From the Deployment History, click on the first deployment in the list to look at the details.
125+
126+
![Deployment details](./media/hyperledger-fabric-single-member-blockchain/deployment-details.png)
127+
128+
The details screen will show you a summary of the deployment, followed by three useful output parameters:
129+
130+
- The _API-ENDPOINT_ can be used once you deploy an application on the network.
131+
- The _PREFIX_ , also called _deployment prefix_ , uniquely identifies your resources and your deployment. It
132+
will be used when using the command-line based tools.
133+
- The _SSH-TO-FIRST-VM_ gives you a pre-assembled ssh command with all the right parameters required
134+
to connect to the first VM in your network; in the case of Hyperledger Fabric, it will be the Fabric-CA
135+
node.
136+
137+
You can remotely connect to the virtual machines for each node via SSH with your provided admin username and password/SSH key. Since the node VMs do not have their own public IP addresses, you will need to go through the load balancer and specify the port number. The SSH command to access the first transaction node is the third template output, **SSH-TO-FIRST-VM (for the sample deployment: `sh -p 3000 [email protected]`). To get to additional transaction nodes, increment the port number by one (For example, the first transaction node is on port 3000, the second is on 3001, the third is on 3002, etc.).
138+
139+
## Next steps
140+
141+
You are now ready to focus on application and chaincode development against your Hyperledger consortium blockchain network.
27.5 KB
Loading
30.5 KB
Loading
136 KB
Loading
56.5 KB
Loading
148 KB
Loading
36.1 KB
Loading
93.9 KB
Loading

0 commit comments

Comments
 (0)