Deploy chaincode to Hyperledger Fabric Consortium on Azure - azure

I've a single node Hyperledger Fabric network running on MS Azure, deployed using the Hyperledger Fabric consortium network template from Azure. How do I deploy chaincodes to the network? After sshing to the VM, I can connect to the peers but when I try installing a chaincode I get Error: error getting chaincode code car.go: <go, [env]>: failed with error: "exec: not started"
I sense I'm doing something wrong. How do I deploy chaincodes to a fabric network deployed using the Azure Hyperledger Fabric template?
I found this and this , not sure these are what I'm looking for. I just need to simply install and instantiate a chaincode using the peer cli.
Please help. Thank you.

Related

Is Hyperledger Composer mandatory to setup a Multi-Node Multi Org Hyperledger fabric network?

I am getting started with the Hyperledger fabric network. I went through the examples of setting up single org setup on a single node and Single Org-Multi Node as well.
I am now trying to setup a Multi-Org, Multi Node network and the all the examples I have seen online, uses Hyperledger Composer. So, Is Composer mandatory to setup HYL-Fabric Multi-node, Multi-Org structrure, If not, can anyone provide me with the steps needed to setup a n/w without the composer?
Thanks

What is the difference between Composer business network and Hyperledger Fabric network

I understand that we can deploy multiple Hyperledger Composer Business networks on a fabric network with single Org (or multi org). Is it similar to deploying multiple chaincodes on a fabric network (on one or more channels)? That means, composer network install and composer network start are similar to peer chaincode install and peer chaincode instantiate on fabric?
You are correct, composer network install is similar to peer chaincode install as it installs your business network onto the peer (your business network is the chaincode here) and under the covers performs a request similar to the peer install command. composer network start is similar to peer chaincode instantiate as it makes a request to instantiate the business network chaincode but also performs some extra required activities specific to hyperledger composer.

Hyperledger Fabric on Azure

I wanted to deployed and configured a Hyperledger network locally and also transfer it to Azure Hyperledger-Fabric for single organisation.
this may help https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-single-org - Hyperledger Composer has a single-org tutorial. However, to learn about Fabric itself, you should look at the Fabric network samples (easy to find on the web)

Hyperledger composer on hyperledger fabric deployed on Docker swarm

I have deployed a one org hyperledger fabric network over docker swarm. Where one node has an orderer, peer , ca and couchdb and other node has one couchdb and node. I was able to invoke basic chaincode over it. Now I want to deploy composer over it. But I am not sure what shall I give in request and event url of connection.json. I already tried giving individual IPs instead of localhost,but no luck. I used this tutorial to deploy one org fabric network over docker swarm.
See https://discourse.skcript.com/t/setting-up-a-blockchain-business-network-with-hyperledger-fabric-composer-running-in-multiple-physical-machine/602
you will need the requestURL and eventURL definition, along with peer addresses from the other 'node' (I assume you mean 'machine') on your node 1.

Hyperledger Fabric add new peers in different machine

I have completed this tutorial and successfully deployed a business network over what it seems to be a generic hyperledger fabric blockchain.
What i want to do now is to create a new peer in diffenrent machine but connected to the same blockchain. Can't find any information. Any help?
Thank you community!
To deploy hyperledger on a different machine you need to take advantage of docker swarm and overlay network. You can find the guide at
Deploying Hyperledger on Multiple Hosts
for the next question about extending your existing network by adding peers, follow Extending your network
I suggest you start looking at the hyperledger fabric documentation
http://hyperledger-fabric.readthedocs.io/en/latest/
You will need to understand about a hyperledger fabric network topology. There are many things you need to understand in order to understand how to configure a peer correctly and join it to a channel. The build your first network section will take you through creating a fabric network from scratch.

Resources