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
- Blockchain Workbench API app registration
- Add Role to App
- Add permissions
- Grant permissions
- Generate Keys
- Get Application ID
- Domain Name
1. Blockchain Workbench API app registration
- Open Azure Active directory
- Click on App Registrations
- Click on New application registration
- Enter below details
- Name: Blockchain API
- Sign-in URL: https://blockchainapi
- Click on Create
2. Add Role to App
- 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
- Click on Settings
- Select Required permissions
- Add Permissions
- Select Microsoft Graph
- Hit select
- Select permission as Read all users’ full profiles
- Hit Select
- Hit Done
4. Grant permissions
- Select Grand permissions
- Hit Yes
5. Generate Keys
- Select the Application
- Click on Settings
- Select Keys
- 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
- Open Azure Active directory
- Click on App Registrations
- Select Blockchain API
- Copy Application ID for later use
7. Copy Domain Name
- 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/