Azure Blockchain Workbench – Configure Active Directory

This is an series of post to build Blockchain solutions with Azure Blockchain Workbench. Before reading this post, please go through Overview of Azure Blockchain Workbench .

Steps to Build and Deploy Blockchain solution with Ethereum

  • Step 1: Configure Active Directory
  • Step 2: Provision Azure Blockchain Workbench components
  • Step 3: Write Smart Contract for Asset Transfer DApp with Solidity
  • Step 4: Deploy Asset Transfer application

In this post we will work on Step 1: Configure Active Directory

Steps to configure Active Directory

  1. Blockchain Workbench API app registration
  2. Add Role to App
  3. Add permissions
  4. Grant permissions
  5. Generate Keys
  6. Get Application ID
  7. Domain Name

 

1. Blockchain Workbench API app registration

Screenshot_38

  • Open Azure Active directory
  • Click on App Registrations
  • Click on New application registration
  • Enter below details
  • Click on Create

 

2. Add Role to App

Picture1d.png

  • Click on Manifest
  • Generate GUID through online https://guidgenerator.com/ and make a note of GUID
  • Update the appRoles with below json with new GUID which you have generated

“appRoles”: [

     {

       “allowedMemberTypes”: [         “User”,

         “Application”

       ],

       “displayName”: “Administrator”,

       “id”: ““,

       “isEnabled”: true,

       “description”: “Blockchain Workbench administrator role allows creation of applications, user to role assignments, etc.”,

       “value”: “Administrator”

     }

   ],

  • Save the details

 

3. Add permissions

Picture1sd.png

  • Click on Settings
  • Select Required permissions
  • Add Permissions

Picture12.png

  • Select Microsoft Graph
  • Hit select

Screenshot_39.png

  • Select permission as Read all users’ full profiles
  • Hit Select
  • Hit Done

 

4. Grant permissions

Picture1q

  • Select Grand permissions
  • Hit Yes

 

5. Generate Keys

Picture1w.png

  • Select the Application
  • Click on Settings
  • Select Keys

Screenshot_40.png

  • Enter Service in Description field
  • Select value in Expires
  • Hit Save
  • Note down the generated Key
  • This key will be used while provisioning

 

6. Copy Application ID

Picture1e

  • Open Azure Active directory
  • Click on App Registrations
  • Select Blockchain API
  • Copy Application ID for later use

 

7. Copy Domain Name

Picture1r.png

  • Go to Active Directory
  • Select Custom domain names
  • Copy the domain for later use

 

With this we are done configuring Active Directory. In the next step we will provision Azure Blockchain Workbench

Step 2: Provision Azure Blockchain Workbench components

Reference/Further reading

https://docs.microsoft.com/en-us/azure/blockchain/workbench/

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s