您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

快速入门:使用 Azure 门户创建 Azure 区块链服务区块链成员Quickstart: Create an Azure Blockchain Service blockchain member using the Azure portal

本快速入门介绍如何使用 Azure 门户在 Azure 区块链服务中部署新的区块链成员和联盟。In this quickstart, you deploy a new blockchain member and consortium in Azure Blockchain Service using the Azure portal.

如果还没有 Azure 订阅,可以在开始前创建一个免费帐户If you don't have an Azure subscription, create a free account before you begin.

创建区块链成员Create a blockchain member

Azure 区块链服务成员是专用联盟区块链网络中的区块链节点。An Azure Blockchain Service member is a blockchain node in a private consortium blockchain network. 预配成员时,可以创建或加入联盟网络。When provisioning a member, you can create or join a consortium network. 至少需要一个联盟网络的成员。You need at least one member for a consortium network. 参与者所需的区块链成员数取决于方案。The number of blockchain members needed by participants depends on your scenario. 联盟参与者可能有一个或多个区块链成员,或者与其他参与者共享成员。Consortium participants may have one or more blockchain members or they may share members with other participants. 有关联盟的详细信息,请参阅 Azure 区块链服务联盟For more information on consortia, see Azure Blockchain Service consortium.

  1. 登录 Azure 门户Sign in to the Azure portal.

  2. 在 Azure 门户的左上角选择“创建资源”。 Select Create a resource in the upper left-hand corner of the Azure portal.

  3. 选择“区块链” > “Azure 区块链服务(预览版)” 。Select Blockchain > Azure Blockchain Service (preview).

    创建服务

    设置Setting 说明Description
    订阅Subscription 选择要用于你的服务的 Azure 订阅。Select the Azure subscription that you want to use for your service. 如果有多个订阅,请选择要计费的资源所在的订阅。If you have multiple subscriptions, choose the subscription in which you get billed for the resource.
    资源组Resource group 可以创建新的资源组名称,也可以选择订阅中现有的资源组名称。Create a new resource group name or choose an existing one from your subscription.
    区域Region 选择要创建的成员的所属区域。Choose a region to create the member. 联盟中所有成员的位置必须相同。All members of the consortium must be in the same location.
    协议Protocol Azure 区块链服务预览版目前支持仲裁协议。Currently, Azure Blockchain Service Preview supports the Quorum protocol.
    联盟Consortium 对于新联盟,请输入唯一的名称。For a new consortium, enter a unique name. 如果通过某个计划加入联盟,请选择要加入的联盟。If joining a consortium through an invite, choose the consortium you are joining. 有关联盟的详细信息,请参阅 Azure 区块链服务联盟For more information on consortia, see Azure Blockchain Service consortium.
    名称Name 为该 Azure 区块链服务成员选择一个唯一名称。Choose a unique name for the Azure Blockchain Service member. 区块链成员名称只能包含小写字母和数字。The blockchain member name can only contain lowercase letters and numbers. 第一个字符必须是字母。The first character must be a letter. 值长度必须介于 2 到 20 个字符之间。The value must be between 2 and 20 characters long.
    成员帐户密码Member account password 成员帐户密码用于加密为你的成员创建的 Ethereum 帐户的私钥。The member account password is used to encrypt the private key for the Ethereum account that is created for your member. 你使用成员帐户和成员帐户密码进行联盟管理。You use the member account and member account password for consortium management.
    定价Pricing 新服务的节点配置和成本。The node configuration and cost for your new service. 选择“更改”链接,在“标准”层和“基本”层之间进行选择 。Select the Change link to choose between Standard and Basic tiers.
    节点密码Node password 成员的默认事务节点的密码。The password for the member's default transaction node. 连接到区块链成员的默认事务节点公共终结点时,请使用密码进行基本身份验证。Use the password for basic authentication when connecting to blockchain member's default transaction node public endpoint.
  4. 选择“查看 + 创建”以验证自己的设置 。Select Review + create to validate your settings. 选择“创建” 来预配服务。Select Create to provision the service. 预配大约需要 10 分钟。Provisioning takes about 10 minutes.

  5. 若要监视部署过程,请在工具栏上选择“通知”。 Select Notifications on the toolbar to monitor the deployment process.

  6. 在部署后,导航到你的区块链成员。After deployment, navigate to your blockchain member.

选择“概述” ,你可以查看你的服务的基本信息,包括 RootContract 地址和成员帐户。Select Overview, you can view the basic information about your service including the RootContract address and member account.

区块链成员概述

清理资源Clean up resources

你可以将所创建的成员用于下一快速入门或教程。You can use the member you created for the next quickstart or tutorial. 不再需要这些资源时,可以通过删除为该快速入门创建的 myResourceGroup 资源组来删除这些资源。When no longer needed, you can delete the resources by deleting the myResourceGroup resource group you created for the quickstart.

若要删除资源组,请执行以下操作:To delete the resource group:

  1. 在 Azure 门户中,导航至左侧导航窗格中的“资源组” ,然后选择要删除的资源组。In the Azure portal, navigate to Resource group in the left navigation pane and select the resource group you want to delete.
  2. 选择“删除资源组” 。Select Delete resource group. 输入资源组名称确认删除并选择“删除” 。Verify deletion by entering the resource group name and select Delete.

后续步骤Next steps

在本快速入门中,你已部署了一个 Azure 区块链服务成员和一个新的联盟。In this quickstart, you deployed an Azure Blockchain Service member and a new consortium. 请尝试学习下一个快速入门,使用适用于 Ethereum 的 Azure 区块链开发工具包将内容附加到 Azure 区块链服务成员。Try the next quickstart to use Azure Blockchain Development Kit for Ethereum to attach to an Azure Blockchain Service member.