Getting Started with Blockchain as a Service using Microsoft Azure Dev Test Labs


Blockchain as a Service is now available within  Microsoft Azure DevTest Labs.

Developers and testers are looking to solve the delays in creating and managing their environments by going to the cloud. Azure solves the problem of environment delays and allows self-service within a new cost efficient structure. However, developers and testers still need to spend considerable time configuring their self-served environments. Also, decision makers are uncertain about how to leverage the cloud to maximize their cost savings without adding too much process overhead.

Azure DevTest Labs is a service that helps developers and testers quickly create environments in Azure while minimizing waste and controlling cost. You can test the latest version of your application by quickly provisioning Windows and Linux environments using reusable templates and artifacts. Easily integrate your deployment pipeline with DevTest Labs to provision on-demand environments. Scale up your load testing by provisioning multiple test agents, and create pre-provisioned environments for training and demos.

Simply search for the keyword "Blockchain" and you will see Blockchain Labs in the list of available resources.


Select Create and fill in the details of your lab and you'll be off to the races. You can then select from a wide variety of blockchain artifacts to create your own private, permissioned, public or consortium blockchain labs. see

Blockchain Labs

Use your choice of open source stacks and third party offerings to get started.


Blockchain is becoming a very interesting are and crossing many business verticals PokitDok and their vision for blockchain in healthcare called DokChain both UCL and Imperial in the UK have developed specific BlockChain institutes so I expect to see lots more exciting opportunities around BlockChain over the next few months.

If you want to understand more about how to setup BlockChain as a Service hosted  on Azure see the following tutorial which walks you through the setup process. 

Step1. Sign in to your Azure Subscription

1. Navigate to

a. Enter the credentials for your Microsoft Azure account


b. Once authenticated, you will be redirected to the Azure portal


Step 2. Create a new DevTest Lab Instance

1. Start to create a new DevTest lab

a. Click on the “New” button

b. Type “devtest” into the search box

c. Select “DevTest Labs for Blockchain as a Service” from the autocomplete dropdown


d. Under “Results” select “DevTest Labs for Blockchain as a Service”

e. Click the “Create” button


2. Complete the properties for your new DevTest Lab

a. Give the lab a name

b. Select a Subscription (only required if you have multiple subscriptions)

c. Select a location (Data Centre). North Europe is a good choice for the UK.

d. Auto-shutdown will schedule labs VMs to be shutdown automatically (daily @ 7pm is the default). This will ensure that VMs inadvertently left running will not incur undue costs against the subscription. It’s a good idea to leave this enabled unless there’s a specific reason to leave the VMs running overnight.

e. Select the Storage type. Premium allows for faster VMs but carries an extra cost.


3. Create the Lab

a. Hit the “Create” button at the bottom of the “blade”


4. Lab Creation

a. You will likely see some status notifications appear as the lab is provisioned and deployed

b. If you click on the “Notifications” button (the bell icon) you should ultimately see a message indicating that the deployment succeeded

c. Should the deployment fail, clicking on the notification will take you to a detailed logging page showing each stage of the process and its outcome. This may help to pinpoint the issue.



Step3. Connect to an Artifect Repository

1. Navigate to the newly created DevTest lab

a. On the left-hand navigation select “Browse”

b. Find DevTest Labs in the list and check the star to make it a favourite


c. Select “DevTest” labs on the left-hand navigation and then select the lab you’ve just created (eg “Blockchain Lab”)


d. This will bring up the lab info blade and settings blade

2. Configure the new repository

a. Click on “Artifect Repositories” in the Settings blade

b. Then click “Add” to add a new repository


c. In the Artifact repositories properties blade, enter the following

i. Name for the repo (eg “MyBlockchainRepo”)

ii. Git clone URI:

iii. Folder path: baas-artifacts

iv. Branch: (leave blank)

v. Access Token: Get this from GitHub (see Note 1 below)


d. Hit “Save” at the bottom of the blade to create the new repository

Step 4. Create a new virtual machine configured for Ethereum Homestead

1. From your DevTest Lab configuration blade, click on “+ Virtual Machine” to add a new VM


2. Configure the Virtual Machine

a. Select “Ubuntu Server 14.04 LTS” as the base image

b. Give the machine a name eg EthNode1

c. Provide a username and password

i. Make sure to store these securely for future reference

d. Set a machine size eg Standard_D2_v2

e. VirtualNetwork and Subnet should be preconfigured

f. Leave the IP address as public

g. Click on “Artifacts” to add the required Ethereum components

h. You could of course add additional or different components at this stage, eg if you wanted to create a Manifold node


3. Select “Go-Ethereum-Homestead”

a. In the blade that appears, enter the username you created earlier into the Admin User Account field

b. Click Add on the artefact configuration (username) blade

c. Click OK on the “Add artifacts” blade

d. Click Create on the “Virtual Machine” blade which will now have 1 artifact selected


4. Azure will now create an Ubuntu VM and install the Ethereum Homestead components

a. You may want to repeat section 4/ to create a 2nd Ethereum node in the network

5. When completed you should see the new VM(s) appear in the DevTest Lab under “My virtual machines”


Step 5.Connect to the Virtual Machine

1. We are going to use SSH (Secure Shell) to connect to the newly created VM

a. You will need an SSH client such as Putty to connect

b. Eg

2. In the DevTest Lab blade, click through to the VM you want to connect to

a. Note the auto-start and auto-shutdown tile. You can opt-in to have your VMs automatically shutdown out of hours ensuring they don’t incur unnecessary costs

3. Capture the public IP address of the VM so we can connect to it over SSH.


4. Open your SSH client and set the host to be the public IP address of the VM


5. Open a connection

6. Login using the credentials you provided when creating the VM


7. You are now ready to get started with Ethereum. You can choose to participate in Ethereum’s public networks or create a private network


8. The home directory contains a number of scripts to simplify the process of creating a private Ethereum network

a. lab-seed.json – this is the “genesis state” file

b. – run the blockchain for the first time (seed it)

c. – restart the blockchain (ie run once seeded)

d. – attach console


Note 1 – Acquiring a personal access token from GitHub

1. Sign in to GitHub (or create a new account):

2. Select Account “Settings”


3. Select “Personal access tokens” in the left-hand navigation

4. And click on “Generate new token”


5. Give the token a name (eg “Baas_Token”)

6. Give it “public_repo” scope


7. Click on “Generate new token” at the bottom of the page

8. Copy the newly generated personal access token to the clipboard

As we build out our blockchain middleware stack more detailed information and documentation will become available on GitHub. Future topics include: writing secure SmartContracts, Microsoft Blockchain data services and a deep dive into Cryptlets.

Comments (10)
  1. Gert says:

    Thanks for posting this. However I get “InvalidArtifactSourceName: Invalid/reserved repository name.” in the step “Configure the new repository” (leaving the git URL unchanged as indicated). I wonder if this guide is more accurate?

    1. Akash says:

      This guide is old, you can paste the new URL and it will work.

  2. Chris says:

    As the previous commenter pointed out, saving the Blockchain repo with the git URL listed in Step 3 still produces the following error: “InvalidArtifactSourceName: Invalid/reserved repository name.” Not sure where to go from here. Is there a more recent version of this guide that solves this problem?

    1. Lee Stott says:

      Azure’s Blockchain as a Service continues to grow at a very rapid pace. In order to consolidate all of the various partner offerings and make them more easily discoverable for the most common uses, there are now going to be three main places where these assets can be found.

      Certified Marketplace –
      Template library –
      DevTest labs –
      Artifact repo –
      DevTest labs continues to be a very active place to explore the power of blockchain networks.

      Azure DevTest labs allows you to create a lab “sandbox” to invite your partners, competitors and supply chain participants into where they can be contributors having full control over resources they create, but no administrative permissions to others resources. It creates the perfect environment to try out collaborative use cases for blockchains in a move towards a shared ecommerce platform based on distributed ledgers. This allows you to create your own “private” consortium lab within your Azure subscription, setting up restrictions for usage, etc., but skip the whole “joint” lab setup and get to work ASAP.

      The DevTest Labs Artifact library has a new home. The old location will remain, but will not be updated. If you manually added the old library to your DevTest Lab, please redirect the URL for the artifact library the new URL.

      To make it REALLY easy to get started with your own “consortium” lab, we have created a Blockchain as a Service Marketplace Template.

      The template will automatically setup your lab with the most popular lab settings and include the library of existing Blockchain as a Service partner offerings. The library of blockchain artifacts is kept up to date, so you will know when new distributed ledger platforms, tools and services become available.

  3. Lee Stott says:

    For the latest information and announcement on Azure and Blockchain see

  4. Ravi Nomula says:

    Hello Lee Stot,

    Is there any updated version of this document as most of the screenshots doesn’t match to what is available on Azure today ……any help will be appreciated …

    1. Lee Stott says:

      Hi Ravi

      There are some new great case studies on BlockChain see

      Utilidex Partnership Blog post – Tells the story of the blockchain hack effort in partnership with Microsoft.
      Utilidex Blockchain Blog post Tells the story of why Utilidex is interested in investigating blockchain.
      MS News Centre article Tells the story of Microsoft’s interest in the blockchain ecosystem and of our support for partners in driving innovative solutions on our platform.
      TechNet article To summarize the technical aspects of the hack effort.
      Video case study Video summary of the hack.
      Technical white paper 32-page detailed write-up of how Azure can work with Ethereum.

      Source code on Github

      11 repositories of code, scripts and setup instructions to instantiate what was achieved. Landing page for all repositories Overall orchestration scripts to stand up a new chain or add a member, etc. Solidity EnergyExchange smart contract implementation Azure Active Directory configuration instructions. Core deployment Web and API Applications. Member deployment Web and API Applications. Automation scripts to start / stop Ethereum nodes. DevVm/Jump Box in the Initial Deployment. Service to backup keystore. Service to monitor and restart Ethereum Geth clients on stalled nodes. ARM template and PS scripts for App Services components in member deployments and integration to existing VNet.

    2. Lee Stott says:


      Now available under workshops at

Comments are closed.

Skip to main content