azureazure-virtual-machineazure-blockchain-service

Azure Blockchain as a Service port's config


I am using Blockchain as a Service on Azure to deploy a private blockchain.

The default ports are 8545 for the RPC ENDPOINT and 3000 for the first transaction node. I would like to change these parameters because of a firewall constraint.

Is it possible and how can I do it?


Solution

  • Based on my knowledge, this is possible. You could use this template to do this.

    Download azuredeploy.json file to your local PC, and modify adminSitePortand gethRPCPort value you want.

    "adminSitePort": 3000,
    
    "gethRPCPort": 8545,
    

    Then you could use PowerShell to deploy this template.

    New-AzureRmResourceGroupDeployment -Name <deployment name> -ResourceGroupName <resource group name > -TemplateFile "D:\azuredeploy.json"
    

    After the template is deployed successful, you need check Azure NSG that opens port that you need. enter image description here