Hi,
I have encountered error executing the Setting anchor peer(s) command following the steps here.
https://video2.skills-academy.com/en-us/azure/blockchain/templates/hyperledger-fabric-consortium-azure-kubernetes-service
./azhlf channel setAnchorPeers -c $CHANNEL_NAME -p <anchorPeersList> -o $PEER_ORG_NAME -u $PEER_ADMIN_IDENTITY
edex_dev@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-15T01:51:05.002Z - error: [Channel.js]: Channel:echannel received discovery error:access denied
2020-06-15T01:51:05.003Z - error: [Channel.js]: Error: Channel:echannel Discovery error:access denied
2020-06-15T01:51:05.748Z - error: [Channel.js]: Channel:echannel received discovery error:access denied
2020-06-15T01:51:05.748Z - error: [Channel.js]: Error: Channel:echannel Discovery error:access denied
2020-06-15T01:51:05.749Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:echannel Discovery error:access denied
Error: Unable to initialize channel. Attempted to contact 2 Peers. Last error was Error: Channel:echannel Discovery error:access denied
at Network._initializeInternalChannel (/home/edex_dev/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.
edex_dev@Azure:~/azhlfTool$ echo $CHANNEL_NAME
echannel
edex_dev@Azure:~/azhlfTool$ echo $PEER_ORG_NAME
Org1
edex_dev@Azure:~/azhlfTool$ echo $PEER_ADMIN_IDENTITY
admin.Org1
Prior to this, the I was unable to import organization connection profile, admin user identity, and MSP using
./azhlf adminProfile import fromAzure -o $ORDERER_ORG_NAME -g $ORDERER_ORG_RESOURCE_GROUP -s $ORDERER_ORG_SUBSCRIPTION
./azhlf connectionProfile import fromAzure -g $ORDERER_ORG_RESOURCE_GROUP -s $ORDERER_ORG_SUBSCRIPTION -o $ORDERER_ORG_NAME
./azhlf msp import fromAzure -g $ORDERER_ORG_RESOURCE_GROUP -s $ORDERER_ORG_SUBSCRIPTION -o $ORDERER_ORG_NAME
./azhlf adminProfile import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME
./azhlf connectionProfile import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME
./azhlf msp import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME
edex_dev@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 test-dev-hlf1
Fallback to marketplace based application...
Retrieving information about marketplace based application...
Retrieving Connection profile from application...
Connection profile for OrdererOrg imported to /home/edex_dev/azhlfTool/stores/connectionprofiles/OrdererOrg.json.
edex_dev@Azure:~/azhlfTool$
Please help pinpoint what is the problem.
Thank you.