How to get storage account details | Hyperledger Fabric consortium on Azure Kubernetes Service

%3CLINGO-SUB%20id%3D%22lingo-sub-1499802%22%20slang%3D%22en-US%22%3EHow%20to%20get%20storage%20account%20details%20%7C%20Hyperledger%20Fabric%20consortium%20on%20Azure%20Kubernetes%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1499802%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20new%20to%20azure%20and%20AKS.%20I%20am%20facing%20the%20following%20problem.%20Help%20me%20to%20fix%20this.%20I%20have%20created%20new%20free%20account%20and%20did%20the%20following%20steps.%3C%2FP%3E%3CP%3E%3CSTRONG%3EFor%20Orderer%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EBasics%3A%3CBR%20%2F%3Esubscription%3A%20Free%20Trial%3CBR%20%2F%3EResource%20Group%3A%20hlf%3CBR%20%2F%3ERegion%3A%20East%20US%3CBR%20%2F%3EResource%20Prefix%3A%20demo%3C%2FP%3E%3CP%3EFabric%20Settings%3A%3CBR%20%2F%3EOrganization%20name%3A%20OrdererOrg%3CBR%20%2F%3EFabric%20Network%20Component%3A%20Ordering%20Service%3CBR%20%2F%3ENumber%20of%20nodes%3A%203%3CBR%20%2F%3EFabric%20CA%20username%3A%20ca1%3CBR%20%2F%3EFabric%20CA%20password%3A%20*******%3CBR%20%2F%3ECertificates%3A%20Fabric%20CA%20self%20signed%20certificate%3C%2FP%3E%3CP%3EAKS%20cluster%20settings%3A%3CBR%20%2F%3EKubernetes%20cluster%20name%3A%20demo-HLF-AKS%3CBR%20%2F%3EKubernetes%20version%3A%20default%3CBR%20%2F%3EDNS%20prefix%3A%20demo-HLF-AKS-dns%3CBR%20%2F%3ENode%20Size%3A%201x%20Standard%20DS2%20v2%3CBR%20%2F%3E2%20vcpus%2C%207%20GB%20memory%3CBR%20%2F%3ENode%20count%3A%201%3CBR%20%2F%3ENetwork%20Configruration%3A%20Basic%3C%2FP%3E%3CP%3E%22To%20manually%20create%20a%20service%20principal%20with%20the%20Azure%20CLI%20follow%20the%20documentation%20here%22%3CBR%20%2F%3EI%20clicked%20on%20here%20link.%20It%20takes%20me%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Faks%2Fkubernetes-service-principal%23manually-create-a-service-principal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Faks%2Fkubernetes-service-principal%23manually-create-a-service-principal%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20clicked%20on%20try%20it.%20After%20sigining%20in%2C%20It%20says%20no%20storgage%20mount.%20So%20I%20clicked%20on%20create%20storage.%3CBR%20%2F%3EAfter%20that%20I%20got%20the%20following%20information.%3CBR%20%2F%3ESubscription%20Id%3A%20%23%23%23%23%23-%23%23%23-%23%23%23-%23%23%23%23-%23%23%23%23%23%23%23%3CBR%20%2F%3EResource%20group%3A%20cloud-shell-storage-centralindia%3CBR%20%2F%3EStorage%20account%3A%20csg1..........a06f%3CBR%20%2F%3EFile%20share%3A%20cs-iiiii-p-nnnn-mmm-LLLLLLLLL%3C%2FP%3E%3CP%3EI%20have%20used%20these%20information%20to%20set%20the%20following%20enviromnent%20variables%20in%20future(while%20building%20consortium).%3CBR%20%2F%3ESTORAGE_SUBSCRIPTION%3D%3CSUBSCRIPTIONID%3E%3CBR%20%2F%3ESTORAGE_RESOURCE_GROUP%3D%3CAZUREFILESHARERESOURCEGROUP%3E%3CBR%20%2F%3ESTORAGE_ACCOUNT%3D%3CAZURESTORAGEACCOUNTNAME%3E%3CBR%20%2F%3ESTORAGE_LOCATION%3D%3CAZURESTORAGEACCOUNTLOCATION%3E%3CBR%20%2F%3ESTORAGE_FILE_SHARE%3D%3CAZUREFILESHARENAME%3E%3C%2FAZUREFILESHARENAME%3E%3C%2FAZURESTORAGEACCOUNTLOCATION%3E%3C%2FAZURESTORAGEACCOUNTNAME%3E%3C%2FAZUREFILESHARERESOURCEGROUP%3E%3C%2FSUBSCRIPTIONID%3E%3C%2FP%3E%3CP%3EAnd%20then%20I%20execute%20the%20following%20command%20in%20azure%20cli%2C%3CBR%20%2F%3Eaz%20ad%20sp%20create-for-rbac%20--skip-assignment%20--name%20myAKSClusterServicePrincipal%3CBR%20%2F%3EI%20got%20the%20following%20output%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22appId%22%3A%20%22%23%23%23%23-%23%23%23%23-%23%23%23%23-%23%23%23-%23%23%23%23%23%22%2C%3CBR%20%2F%3E%22displayName%22%3A%20%22myAKSClusterServicePrincipal%22%2C%3CBR%20%2F%3E%22name%22%3A%20%22http%3A%2F%2FmyAKSClusterServicePrincipal%22%2C%3CBR%20%2F%3E%22password%22%3A%20%22******-*******-z%22%2C%3CBR%20%2F%3E%22tenant%22%3A%20%221111-11111-1111-1111-11111%22%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3EHere%20I%20used%20appId%20as%20Service%20principal%20client%20ID%20and%20password%20as%20Service%20principal%20client%20secret.%3C%2FP%3E%3CP%3E%3CSTRONG%3EFor%20Peer%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EBasics%3A%3CBR%20%2F%3Esubscription%3A%20Free%20Trial%3CBR%20%2F%3EResource%20Group%3A%20hlfp%3CBR%20%2F%3ERegion%3A%20East%20US%3CBR%20%2F%3EResource%20Prefix%3A%20demop%3C%2FP%3E%3CP%3EFabric%20Settings%3A%3CBR%20%2F%3EOrganization%20name%3A%20Org1%3CBR%20%2F%3EFabric%20Network%20Component%3A%20Peer%20Nodes%3CBR%20%2F%3ENumber%20of%20nodes%3A%201%3CBR%20%2F%3EWorld%20state%20database%3A%20CouchDB%3CBR%20%2F%3EFabric%20CA%20username%3A%20ca2%3CBR%20%2F%3EFabric%20CA%20password%3A%20*******%3CBR%20%2F%3ECertificates%3A%20Fabric%20CA%20self%20signed%20certificate%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAKS%20cluster%20settings%3A%3CBR%20%2F%3EKubernetes%20cluster%20name%3A%20demop-HLF-AKS%3CBR%20%2F%3EKubernetes%20version%3A%20default%3CBR%20%2F%3EDNS%20prefix%3A%20demop-HLF-AKS-dns%3CBR%20%2F%3ENode%20Size%3A%201x%20Standard%20DS2%20v2%3CBR%20%2F%3E2%20vcpus%2C%207%20GB%20memory%3CBR%20%2F%3ENode%20count%3A%201%3CBR%20%2F%3ENetwork%20Configruration%3A%20Basic%3C%2FP%3E%3CP%3EI%20have%20used%20same%20Service%20principal%20client%20ID%20and%20Service%20principal%20client%20secret%20which%20is%20used%20while%20creating%20Orderer.%3C%2FP%3E%3CP%3EIn%20azure-cli%2C%20I%20executed%20the%20following%20environment%20variables%2C%3CBR%20%2F%3EORDERER_ORG_SUBSCRIPTION%3D%22AAAAA-BBB-CCCC-DDDD-CCCCCCC%22%3CBR%20%2F%3EORDERER_ORG_RESOURCE_GROUP%3D%22hlf%22%3CBR%20%2F%3EORDERER_ORG_NAME%3D%22OrdererOrg%22%3CBR%20%2F%3EORDERER_ADMIN_IDENTITY%3D%22admin.%24ORDERER_ORG_NAME%22%3CBR%20%2F%3ECHANNEL_NAME%3D%22mychannel%22%3C%2FP%3E%3CP%3EPEER_ORG_SUBSCRIPTION%3D%22AAAAA-BBB-CCCC-DDDD-CCCCCCC%22%3CBR%20%2F%3EPEER_ORG_RESOURCE_GROUP%3D%22hlfp%22%3CBR%20%2F%3EPEER_ORG_NAME%3D%22Org1%22%3CBR%20%2F%3EPEER_ADMIN_IDENTITY%3D%22admin.%24PEER_ORG_NAME%22%3C%2FP%3E%3CP%3ESTORAGE_SUBSCRIPTION%3D%22AAAAA-BBB-CCCC-DDDD-CCCCCCC%22%3CBR%20%2F%3ESTORAGE_RESOURCE_GROUP%3D%22cloud-shell-storage-centralindia%22%3CBR%20%2F%3ESTORAGE_ACCOUNT%3D%22csg1..........a06f%22%3CBR%20%2F%3ESTORAGE_LOCATION%3D%22eastus%22%3CBR%20%2F%3ESTORAGE_FILE_SHARE%3D%22cs-iiiii-p-nnnn-mmm-LLLLLLLLL%22%3C%2FP%3E%3CP%3EI%20got%20these%20above%20information%2C%20when%20I%20click%20azure-cli%201st%20time.%3C%2FP%3E%3CP%3EAfter%20this%2C%20I%20executed%20the%20following%20commands%20in%20azure-cli.%3C%2FP%3E%3CP%3E%3CEM%3Esa%40Azure%3A~%2FazhlfTool%24%3C%2FEM%3E%20az%20account%20set%20--subscription%20%24STORAGE_SUBSCRIPTION%3CBR%20%2F%3E%3CEM%3Esa%40Azure%3A~%2FazhlfTool%24%3C%2FEM%3E%20az%20group%20create%20-l%20%24STORAGE_LOCATION%20-n%20%24STORAGE_RESOURCE_GROUP%3CBR%20%2F%3EInvalid%20resource%20group%20location%20'eastus'.%20The%20Resource%20group%20already%20exists%20in%20location%20'centralindia'.%3CBR%20%2F%3E%3CEM%3Esa%40Azure%3A~%2FazhlfTool%24%3C%2FEM%3E%20az%20storage%20account%20create%20-n%20%24STORAGE_ACCOUNT%20-g%20%24STORAGE_RESOURCE_GROUP%20-l%20%24STORAGE_LOCATION%20--sku%20Standard_LRS%3CBR%20%2F%3EThe%20resource%20'csg10032000cc3ca06f'%20already%20exists%20in%20location%20'centralindia'%20in%20resource%20group%20'cloud-shell-storage-centralindia'.%20A%20resourcewith%20the%20same%20name%20cannot%20be%20created%20in%20location%20'eastus'.%20Please%20select%20a%20new%20resource%20name.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20STORAGE_KEY%3D%24(az%20storage%20account%20keys%20list%20--resource-group%20%24STORAGE_RESOURCE_GROUP%20--account-name%20%24STORAGE_ACCOUNT%20--query%20%22%5B0%5D.value%22%20%7C%20tr%20-d%20'%22')%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20az%20storage%20share%20create%20--account-name%20%24STORAGE_ACCOUNT%20--account-key%20%24STORAGE_KEY%20--name%20%24STORAGE_FILE_SHARE%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22created%22%3A%20false%3CBR%20%2F%3E%7D%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20STORAGE_KEY%3D%24(az%20storage%20account%20keys%20list%20--resource-group%20%24STORAGE_RESOURCE_GROUP%20--account-name%20%24STORAGE_ACCOUNT%20--query%20%22%5B0%5D.value%22%20%7C%20tr%20-d%20'%22')%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20SAS_TOKEN%3D%24(az%20storage%20account%20generate-sas%20--account-key%20%24STORAGE_KEY%20--account-name%20%24STORAGE_ACCOUNT%20--expiry%20%60date%20-u%20-d%20%221%20day%22%20'%2B%25Y-%25m-%25dT%25H%3A%25MZ'%60%20--https-only%20--permissions%20lruwd%20--resource-types%20sco%20--services%20f%20%7C%20tr%20-d%20'%22')%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20AZURE_FILE_CONNECTION_STRING%3Dhttps%3A%2F%2F%24STORAGE_ACCOUNT.file.core.windows.net%2F%24STORAGE_FILE_SHARE%3F%24SAS_TOKEN%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20adminProfile%20import%20fromAzure%20-o%20%24ORDERER_ORG_NAME%20-g%20%24ORDERER_ORG_RESOURCE_GROUP%20-s%20%24ORDERER_ORG_SUBSCRIPTION%3CBR%20%2F%3ETrying%20to%20find%20requested%20resource%20in%20Azure%20Blockchain%20Service...%3CBR%20%2F%3ECould%20not%20find%20Azure%20blockchain%20Hyperledger%20Fabric%20member%20OrdererOrg%20in%20resource%20group%20hlf%3CBR%20%2F%3EFallback%20to%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20information%20about%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20Admin%20profile%20from%20application...%3CBR%20%2F%3Eadmin.OrdererOrg%20imported%20to%20wallet%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20connectionProfile%20import%20fromAzure%20-g%20%24ORDERER_ORG_RESOURCE_GROUP%20-s%20%24ORDERER_ORG_SUBSCRIPTION%20-o%20%24ORDERER_ORG_NAME%3CBR%20%2F%3ETrying%20to%20find%20requested%20resource%20in%20Azure%20Blockchain%20Service...%3CBR%20%2F%3ECould%20not%20find%20Azure%20blockchain%20Hyperledger%20Fabric%20member%20OrdererOrg%20in%20resource%20group%20hlf%3CBR%20%2F%3EFallback%20to%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20information%20about%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20Connection%20profile%20from%20application...%3CBR%20%2F%3EConnection%20profile%20for%20OrdererOrg%20imported%20to%20%2Fhome%2Fsa%2FazhlfTool%2Fstores%2Fconnectionprofiles%2FOrdererOrg.json.%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20msp%20import%20fromAzure%20-g%20%24ORDERER_ORG_RESOURCE_GROUP%20-s%20%24ORDERER_ORG_SUBSCRIPTION%20-o%20%24ORDERER_ORG_NAME%3CBR%20%2F%3ETrying%20to%20find%20requested%20resource%20in%20Azure%20Blockchain%20Service...%3CBR%20%2F%3ECould%20not%20find%20Azure%20blockchain%20Hyperledger%20Fabric%20member%20OrdererOrg%20in%20resource%20group%20hlf%3CBR%20%2F%3EFallback%20to%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20information%20about%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20MSP%20profile%20from%20application...%3CBR%20%2F%3EOrdererOrg%20MSP%20is%20imported%20to%20%2Fhome%2Fsa%2FazhlfTool%2Fstores%2Fmsp%2FOrdererOrg.json.%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%3C%2FP%3E%3CP%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20adminProfile%20import%20fromAzure%20-g%20%24PEER_ORG_RESOURCE_GROUP%20-s%20%24PEER_ORG_SUBSCRIPTION%20-o%20%24PEER_ORG_NAME%3CBR%20%2F%3ETrying%20to%20find%20requested%20resource%20in%20Azure%20Blockchain%20Service...%3CBR%20%2F%3ECould%20not%20find%20Azure%20blockchain%20Hyperledger%20Fabric%20member%20Org1%20in%20resource%20group%20hlfp%3CBR%20%2F%3EFallback%20to%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20information%20about%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20Admin%20profile%20from%20application...%3CBR%20%2F%3E%5E%5Badmin.Org1%20imported%20to%20wallet%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20connectionProfile%20import%20fromAzure%20-g%20%24PEER_ORG_RESOURCE_GROUP%20-s%20%24PEER_ORG_SUBSCRIPTION%20-o%20%24PEER_ORG_NAME%3CBR%20%2F%3ETrying%20to%20find%20requested%20resource%20in%20Azure%20Blockchain%20Service...%3CBR%20%2F%3ECould%20not%20find%20Azure%20blockchain%20Hyperledger%20Fabric%20member%20Org1%20in%20resource%20group%20hlfp%3CBR%20%2F%3EFallback%20to%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20information%20about%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20Connection%20profile%20from%20application...%3CBR%20%2F%3EConnection%20profile%20for%20Org1%20imported%20to%20%2Fhome%2Fsa%2FazhlfTool%2Fstores%2Fconnectionprofiles%2FOrg1.json.%3C%2FP%3E%3CP%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20msp%20import%20fromAzure%20-g%20%24PEER_ORG_RESOURCE_GROUP%20-s%20%24PEER_ORG_SUBSCRIPTION%20-o%20%24PEER_ORG_NAME%3CBR%20%2F%3ETrying%20to%20find%20requested%20resource%20in%20Azure%20Blockchain%20Service...%3CBR%20%2F%3ECould%20not%20find%20Azure%20blockchain%20Hyperledger%20Fabric%20member%20Org1%20in%20resource%20group%20hlfp%3CBR%20%2F%3EFallback%20to%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20information%20about%20marketplace%20based%20application...%3CBR%20%2F%3ERetrieving%20MSP%20profile%20from%20application...%3CBR%20%2F%3EOrg1%20MSP%20is%20imported%20to%20%2Fhome%2Fsa%2FazhlfTool%2Fstores%2Fmsp%2FOrg1.json.%3CBR%20%2F%3Esa%40Azure%3A~%2FazhlfTool%24%3C%2FP%3E%3CP%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20channel%20create%20-c%20%24CHANNEL_NAME%20-u%20%24ORDERER_ADMIN_IDENTITY%20-o%20%24ORDERER_ORG_NAME%3CBR%20%2F%3ESending%20request%20for%20channel%20creation...%3CBR%20%2F%3EChannel%20mychannel%20successfully%20created.%3C%2FP%3E%3CP%3Esa%40Azure%3A~%2FazhlfTool%24%20.%2Fazhlf%20channel%20setAnchorPeers%20-c%20%24CHANNEL_NAME%20-p%20peer1%20-o%20%24PEER_ORG_NAME%20-u%20%24PEER_ADMIN_IDENTITY%3CBR%20%2F%3EPreparing%20anchor%20peers%20list...%3CBR%20%2F%3ERetrieving%20channel's%20latest%20configuration%20block...%3CBR%20%2F%3E2020-06-30T18%3A09%3A46.378Z%20-%20error%3A%20%5BChannel.js%5D%3A%20Channel%3Ahrschannel%20received%20discovery%20error%3Aaccess%20denied%3CBR%20%2F%3E2020-06-30T18%3A09%3A46.379Z%20-%20error%3A%20%5BChannel.js%5D%3A%20Error%3A%20Channel%3Ahrschannel%20Discovery%20error%3Aaccess%20denied%3CBR%20%2F%3E2020-06-30T18%3A09%3A46.380Z%20-%20error%3A%20%5BNetwork%5D%3A%20_initializeInternalChannel%3A%20Unable%20to%20initialize%20channel.%20Attempted%20to%20contact%201%20Peers.%20Last%20error%20was%20Error%3A%20Channel%3Ahrschannel%20Discovery%20error%3Aaccess%20denied%3CBR%20%2F%3EError%3A%20Unable%20to%20initialize%20channel.%20Attempted%20to%20contact%201%20Peers.%20Last%20error%20was%20Error%3A%20Channel%3Ahrschannel%20Discovery%20error%3Aaccess%20denied%3CBR%20%2F%3Eat%20Network._initializeInternalChannel%20(%2Fhome%2Fsa%2FazhlfTool%2Fnode_modules%2Ffabric-network%2Flib%2Fnetwork.js%3A112%3A12)%3CBR%20%2F%3Eat%20%3CANONYMOUS%3E%3CBR%20%2F%3EIf%20no%20one%20peer%20joined%20the%20requested%20channel%20-%20provide%20--ordererOrg%20parameter%20to%20command.%3C%2FANONYMOUS%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am new to azure and AKS. I am facing the following problem. Help me to fix this. I have created new free account and did the following steps.

For Orderer:
Basics:
subscription: Free Trial
Resource Group: hlf
Region: East US
Resource Prefix: demo

Fabric Settings:
Organization name: OrdererOrg
Fabric Network Component: Ordering Service
Number of nodes: 3
Fabric CA username: ca1
Fabric CA password: *******
Certificates: Fabric CA self signed certificate

AKS cluster settings:
Kubernetes cluster name: demo-HLF-AKS
Kubernetes version: default
DNS prefix: demo-HLF-AKS-dns
Node Size: 1x Standard DS2 v2
2 vcpus, 7 GB memory
Node count: 1
Network Configruration: Basic

"To manually create a service principal with the Azure CLI follow the documentation here"
I clicked on here link. It takes me to https://docs.microsoft.com/en-us/azure/aks/kubernetes-service-principal#manually-create-a-service-pr...

I clicked on try it. After sigining in, It says no storgage mount. So I clicked on create storage.
After that I got the following information.
Subscription Id: #####-###-###-####-#######
Resource group: cloud-shell-storage-centralindia
Storage account: csg1..........a06f
File share: cs-iiiii-p-nnnn-mmm-LLLLLLLLL

I have used these information to set the following enviromnent variables in future(while building consortium).
STORAGE_SUBSCRIPTION=<subscriptionId>
STORAGE_RESOURCE_GROUP=<azureFileShareResourceGroup>
STORAGE_ACCOUNT=<azureStorageAccountName>
STORAGE_LOCATION=<azureStorageAccountLocation>
STORAGE_FILE_SHARE=<azureFileShareName>

And then I execute the following command in azure cli,
az ad sp create-for-rbac --skip-assignment --name myAKSClusterServicePrincipal
I got the following output,
{
"appId": "####-####-####-###-#####",
"displayName": "myAKSClusterServicePrincipal",
"name": "http://myAKSClusterServicePrincipal",
"password": "******-*******-z",
"tenant": "1111-11111-1111-1111-11111"
}

Here I used appId as Service principal client ID and password as Service principal client secret.

For Peer:
Basics:
subscription: Free Trial
Resource Group: hlfp
Region: East US
Resource Prefix: demop

Fabric Settings:
Organization name: Org1
Fabric Network Component: Peer Nodes
Number of nodes: 1
World state database: CouchDB
Fabric CA username: ca2
Fabric CA password: *******
Certificates: Fabric CA self signed certificate


AKS cluster settings:
Kubernetes cluster name: demop-HLF-AKS
Kubernetes version: default
DNS prefix: demop-HLF-AKS-dns
Node Size: 1x Standard DS2 v2
2 vcpus, 7 GB memory
Node count: 1
Network Configruration: Basic

I have used same Service principal client ID and Service principal client secret which is used while creating Orderer.

In azure-cli, I executed the following environment variables,
ORDERER_ORG_SUBSCRIPTION="AAAAA-BBB-CCCC-DDDD-CCCCCCC"
ORDERER_ORG_RESOURCE_GROUP="hlf"
ORDERER_ORG_NAME="OrdererOrg"
ORDERER_ADMIN_IDENTITY="admin.$ORDERER_ORG_NAME"
CHANNEL_NAME="mychannel"

PEER_ORG_SUBSCRIPTION="AAAAA-BBB-CCCC-DDDD-CCCCCCC"
PEER_ORG_RESOURCE_GROUP="hlfp"
PEER_ORG_NAME="Org1"
PEER_ADMIN_IDENTITY="admin.$PEER_ORG_NAME"

STORAGE_SUBSCRIPTION="AAAAA-BBB-CCCC-DDDD-CCCCCCC"
STORAGE_RESOURCE_GROUP="cloud-shell-storage-centralindia"
STORAGE_ACCOUNT="csg1..........a06f"
STORAGE_LOCATION="eastus"
STORAGE_FILE_SHARE="cs-iiiii-p-nnnn-mmm-LLLLLLLLL"

I got these above information, when I click azure-cli 1st time.

After this, I executed the following commands in azure-cli.

sa@Azure:~/azhlfTool$ az account set --subscription $STORAGE_SUBSCRIPTION
sa@Azure:~/azhlfTool$ az group create -l $STORAGE_LOCATION -n $STORAGE_RESOURCE_GROUP
Invalid resource group location 'eastus'. The Resource group already exists in location 'centralindia'.
sa@Azure:~/azhlfTool$ az storage account create -n $STORAGE_ACCOUNT -g $STORAGE_RESOURCE_GROUP -l $STORAGE_LOCATION --sku Standard_LRS
The resource 'csg10032000cc3ca06f' already exists in location 'centralindia' in resource group 'cloud-shell-storage-centralindia'. A resourcewith the same name cannot be created in location 'eastus'. Please select a new resource name.


sa@Azure:~/azhlfTool$ STORAGE_KEY=$(az storage account keys list --resource-group $STORAGE_RESOURCE_GROUP --account-name $STORAGE_ACCOUNT --query "[0].value" | tr -d '"')
sa@Azure:~/azhlfTool$ az storage share create --account-name $STORAGE_ACCOUNT --account-key $STORAGE_KEY --name $STORAGE_FILE_SHARE
{
"created": false
}
sa@Azure:~/azhlfTool$ STORAGE_KEY=$(az storage account keys list --resource-group $STORAGE_RESOURCE_GROUP --account-name $STORAGE_ACCOUNT --query "[0].value" | tr -d '"')
sa@Azure:~/azhlfTool$ SAS_TOKEN=$(az storage account generate-sas --account-key $STORAGE_KEY --account-name $STORAGE_ACCOUNT --expiry `date -u -d "1 day" '+%Y-%m-%dT%H:%MZ'` --https-only --permissions lruwd --resource-types sco --services f | tr -d '"')
sa@Azure:~/azhlfTool$ AZURE_FILE_CONNECTION_STRING=https://$STORAGE_ACCOUNT.file.core.windows.net/$STORAGE_FILE_SHARE?$SAS_TOKEN


sa@Azure:~/azhlfTool$ ./azhlf adminProfile import fromAzure -o $ORDERER_ORG_NAME -g $ORDERER_ORG_RESOURCE_GROUP -s $ORDERER_ORG_SUBSCRIPTION
Trying to find requested resource in Azure Blockchain Service...
Could not find Azure blockchain Hyperledger Fabric member OrdererOrg in resource group hlf
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving Admin profile from application...
admin.OrdererOrg imported to wallet
sa@Azure:~/azhlfTool$ ./azhlf connectionProfile import fromAzure -g $ORDERER_ORG_RESOURCE_GROUP -s $ORDERER_ORG_SUBSCRIPTION -o $ORDERER_ORG_NAME
Trying to find requested resource in Azure Blockchain Service...
Could not find Azure blockchain Hyperledger Fabric member OrdererOrg in resource group hlf
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving Connection profile from application...
Connection profile for OrdererOrg imported to /home/sa/azhlfTool/stores/connectionprofiles/OrdererOrg.json.
sa@Azure:~/azhlfTool$ ./azhlf msp import fromAzure -g $ORDERER_ORG_RESOURCE_GROUP -s $ORDERER_ORG_SUBSCRIPTION -o $ORDERER_ORG_NAME
Trying to find requested resource in Azure Blockchain Service...
Could not find Azure blockchain Hyperledger Fabric member OrdererOrg in resource group hlf
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving MSP profile from application...
OrdererOrg MSP is imported to /home/sa/azhlfTool/stores/msp/OrdererOrg.json.
sa@Azure:~/azhlfTool$

sa@Azure:~/azhlfTool$ ./azhlf adminProfile import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME
Trying to find requested resource in Azure Blockchain Service...
Could not find Azure blockchain Hyperledger Fabric member Org1 in resource group hlfp
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving Admin profile from application...
^[admin.Org1 imported to wallet
sa@Azure:~/azhlfTool$ ./azhlf connectionProfile import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME
Trying to find requested resource in Azure Blockchain Service...
Could not find Azure blockchain Hyperledger Fabric member Org1 in resource group hlfp
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving Connection profile from application...
Connection profile for Org1 imported to /home/sa/azhlfTool/stores/connectionprofiles/Org1.json.

sa@Azure:~/azhlfTool$ ./azhlf msp import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME
Trying to find requested resource in Azure Blockchain Service...
Could not find Azure blockchain Hyperledger Fabric member Org1 in resource group hlfp
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving MSP profile from application...
Org1 MSP is imported to /home/sa/azhlfTool/stores/msp/Org1.json.
sa@Azure:~/azhlfTool$

sa@Azure:~/azhlfTool$ ./azhlf channel create -c $CHANNEL_NAME -u $ORDERER_ADMIN_IDENTITY -o $ORDERER_ORG_NAME
Sending request for channel creation...
Channel mychannel successfully created.

sa@Azure:~/azhlfTool$ ./azhlf channel setAnchorPeers -c $CHANNEL_NAME -p peer1 -o $PEER_ORG_NAME -u $PEER_ADMIN_IDENTITY
Preparing anchor peers list...
Retrieving channel's latest configuration block...
2020-06-30T18:09:46.378Z - error: [Channel.js]: Channel:hrschannel received discovery error:access denied
2020-06-30T18:09:46.379Z - error: [Channel.js]: Error: Channel:hrschannel Discovery error:access denied
2020-06-30T18:09:46.380Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Channel:hrschannel Discovery error:access denied
Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Channel:hrschannel Discovery error:access denied
at Network._initializeInternalChannel (/home/sa/azhlfTool/node_modules/fabric-network/lib/network.js:112:12)
at <anonymous>
If no one peer joined the requested channel - provide --ordererOrg parameter to command.

 

0 Replies