Blockchain - Ethereum Private Consortium Network

cavanes 提供
上次更新时间: 2016/9/20

This template fully automates the provisioning of necessary Azure resources like VMs, storage, network settings etc. as well as the configuration of Go Ethereum (geth) and accounts. It also stands up an administration website to monitor the nodes in the network and provide ether to new accounts. To deploy on Azure Government, go to the Azure quick start repository via the Browse on GitHub button.

此 Azure Resource Manager (ARM) 模板由社区的某个成员(而不是由 Microsoft)创建。每个 ARM 模板都根据其所有者(不是 Microsoft)的许可协议向你授予许可。Microsoft 不对由社区成员提供并授予许可的 ARM 模板负责,并且不针对安全性、兼容性和性能进行筛选。社区 ARM 模板不由任何 Microsoft 支持计划或服务提供支持,按“原样”提供,没有任何种类的担保。

参数

参数名 说明
namePrefix String used as a base for naming resources (6 alphanumeric characters or less). A unique hash is prepended to the string for some resources, while resource-specific information is appended.
adminUsername Administrator username of each deployed VM (alphanumeric characters only)
adminPassword Administrator password for each deployed VM
ethereumAccountPsswd Password used to secure the default Ethereum account that will be generated
ethereumAccountPassphrase Password used to generate the private key associated with the default Ethereum account that is generated. Consider a password with sufficient randomness to ensure a strong private key
ethereumNetworkID Private Ethereum network ID to which to connect (max 9 digit number)
numConsortiumMembers Number of members within the network. Each member's nodes live in their own subnet.
numMiningNodesPerMember Number of mining nodes to create for each consortium member.
mnNodeVMSize Size of the virtual machine used for mining nodes
numTXNodes Number of load balanced transaction nodes
txNodeVMSize Size of the virtual machine for transaction nodes

使用模板

PowerShell
New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/ethereum-consortium-blockchain-network/azuredeploy.json
安装和配置 Azure PowerShell
命令行
azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/ethereum-consortium-blockchain-network/azuredeploy.json
安装和配置 Azure 跨平台命令行界面