Jun 26 2020
- last edited on
May 26 2021
I know concepts of hyperledger fabric. I have experience working in development environment using containers. But I want to learn setup hyperledger fabric in azure. So I followed these steps (https://docs.microsoft.com/en-us/azure/blockchain/templates/hyperledger-fabric-consortium-azure-kube...) in free trial. I build 1 ordering service and 1 peer service separately with different resource group name. However I have the followings confusions in building consortium.
1. Where can I get the following details.
It seems like I have two storage accounts one is created for orderer, one is for peer in recent resources. But here only one of storage details. How to follow this https://docs.microsoft.com/en-us/azure/blockchain/templates/hyperledger-fabric-consortium-azure-kube... for store account and connection string steps specified in this document.
Jun 28 2020 12:43 PM
Hi @selvaraman ,
If you have existing storage account you may setup environment variable first with existing storage account details but make sure you have created file share for that account (That single account can save both orderer and peer details) . In this case creating new account and file share can be skipped.
You may get details of storage from storage resources if you have existing ,please refer attached pic.
If you don't have any storage account then you need to create new storage account with file share . In this case after setting up environment variable . Proceed to execute below command .
az account set --subscription $STORAGE_SUBSCRIPTION
az group create -l $STORAGE_LOCATION -n $STORAGE_RESOURCE_GROUP
az storage account create -n $STORAGE_ACCOUNT -g $STORAGE_RESOURCE_GROUP -l $STORAGE_LOCATION --sku Standard_LRS
-- for file share ---
STORAGE_KEY=$(az storage account keys list --resource-group $STORAGE_RESOURCE_GROUP --account-name $STORAGE_ACCOUNT --query ".value" | tr -d '"')
az storage share create --account-name $STORAGE_ACCOUNT --account-key $STORAGE_KEY --name $STORAGE_FILE_SHARE
For more detailed reference you may refer below blog.
Jun 30 2020 12:23 PM - edited Jun 30 2020 12:24 PM
@asifwaquar Thank you very much for helping me. I think I am not asked the question properly. I described my problem here https://techcommunity.microsoft.com/t5/blockchain/how-to-get-storage-account-details-hyperledger-fab... in details.
Jul 03 2020 09:44 AM - edited Jul 03 2020 09:46 AMSolution
For creating location in same eastus region ,you need to choose advance setting option from cloud shell.It will give you option to choose location ,storage name and account .
Currently your storage is creating in default location central India although you are creating your orderer service and peer in eastus location. So it is giving error . I would recommend you choose location also in eastus by choosing advance setting and then try again .
Let me know if you still face issue because storage is very important part to generate file share string and saving your details.
Please refer screenshot attached below for choosing advance setting option and changing location of your storage account.