Digital Twin - Sample Project



To create digital twins, companies use specific software that allows to run the complex monitoring. Some of the most popular digital twin software include the following −

  • Azure Digital Twin
  • IBM Digital Twin Exchange
  • AWS IoT TwinMaker

In this chapter, we will explain how to create a simple digital twin instance using Azure.

Creating a Digital Twin Instance using Azure

Let us understand how to setup and create an instance in Azure with simple CLI commands.

Prerequisites

You must have an Azure subscription otherwise create a free account.

Setup CLI session

First, we have to login and set CLI context to subscription for this session. Command is defined below,

az login
az account set --subscription "<your-Azure-subscription-ID>"

Register Azure Digital Twins Namespace

Use the following command to register Azure Digital Twins namespace.

az provider register --namespace 'Microsoft.DigitalTwins'

Add IoT Extension

Let us upgrade the latest version of IoT services to enable commands to interact with Azure digital twins,

az extension add --upgrade --name azure-iot

After executing this command, we are ready to connect with Azure digital twins. To verify the digital twin commands,

az dt --help

Azure Digital Twins Instance

We need to set the required permissions for using Azure Digital Twins instance. It is defined below −

az dt show --dt-name <Azure-Digital-Twins-instance-name>

That's all. You have now understood how to configure a simple Azure digital twin instance. Similarly, you can download any existing models and give input to this instance in order to develop new models.

Advertisements