Is there any better article, tutorial, books or video about Hyperledger Fabric consortium on Azure Kubernetes Service (AKS)

Selva Raman 1 Reputation point
2020-06-26T16:36:38.587+00:00

This document (https://learn.microsoft.com/en-us/azure/blockchain/templates/hyperledger-fabric-consortium-azure-kubernetes-service) is not very clear about building consortium. I can not understand anything in building building consortium part except channel creation, chaincode installation, etc. Is there any better article, tutorial, books or video about Hyperledger Fabric consortium on Azure Kubernetes Service (AKS)

Edited:
I am new to azure and I have the following list of questions.

  1. In the AKS cluster settings tab I was asked service principle client id and serice principle secret. So clicked here link
    "To manually create a service principal with the Azure CLI follow the documentation here". It takes me to this page https://learn.microsoft.com/en-us/azure/aks/kubernetes-service-principal#manually-create-a-service-principal. I issued this command in azure cli. az ad sp create-for-rbac --skip-assignment --name myAKSClusterServicePrincipal
    This command give the following output(sample),
    {
    "appId": "559513bd-0c19-4c1a-87cd-851a26afd5fc",
    "displayName": "myAKSClusterServicePrincipal",
    "name": "http://myAKSClusterServicePrincipal",
    "password": "e763725a-5eee-40e8-a466-dc88d980f415",
    "tenant": "72f988bf-86f1-41af-91ab-2d7cd011db48"
    }
    From this I used appId as service principle client Id and password as service principle secret in AKS cluster settings page. I did not do anything else. Is this correct? Should I do anything else?
  2. Where can I get the following values.
    STORAGE_SUBSCRIPTION=<subscriptionId>
    STORAGE_RESOURCE_GROUP=<azureFileShareResourceGroup>
    STORAGE_ACCOUNT=<azureStorageAccountName>
    STORAGE_LOCATION=<azureStorageAccountLocation>
    STORAGE_FILE_SHARE=<azureFileShareName>
    It seems like there are two storage account separately. One for orderer, one for peer. Which one should I use here?
  3. In the document, "Follow below steps for Azure Storage account creation. If you already have Azure Storage account created, skip these steps". How can I check whether storage account created or not.
  4. In the document, "Follow below steps for a file share creation in Azure Storage account. If you already have a file share created, skip these steps". How can I check wthether file share is created or not.
  5. Can you please explain (with command) in the case of multiple organization and peers with example orderer name and example peer names.
Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Shruti Gupta 16 Reputation points
    2020-07-07T19:07:32.297+00:00

    Hi @SelvaRaman-8556,

    Sorry for the delay in response.

    Please find answer to your questions below

    1. Regarding service principal usage - The way you are generating and using Service Principal is correct.
    2. Regarding the storage account - This storage account is used for sharing the artifacts like MSP and connection profile between peer organization and orderer organization. The steps listed user "Set the below environment variables for setting up Azure Storage account" section in documentation are basically to create a new storage account for the same.

    You can set below environment variable as per the your requirement like in which subscription and resource group you want to create it, with what name you want to create storage account and file share etc.

    STORAGE_SUBSCRIPTION=<subscriptionId>
    STORAGE_RESOURCE_GROUP=<azureFileShareResourceGroup>
    STORAGE_ACCOUNT=<azureStorageAccountName>
    STORAGE_LOCATION=<azureStorageAccountLocation>
    STORAGE_FILE_SHARE=<azureFileShareName>

    After setting these environment variables, run Azure CLI commands given in the same section to create the specified storage account, file share and SAS token. For more details on azure storage account Azure CLI commands, please refer here.

    1. Regarding commands for multiple organization - Let's say there is 1 orderer organization (ordererorg) and 2 peer organization (peerorg1 and peerorg2) created through template. Sample steps to create application channel 'testchannel' and add these organization in the channel is captured in 11554-samplecommandsequence.txt

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.