Book Image

Hands-On Azure Digital Twins

By : Alexander Meijers
Book Image

Hands-On Azure Digital Twins

By: Alexander Meijers

Overview of this book

In today’s world, clients are using more and more IoT sensors to monitor their business processes and assets. Think about collecting information such as pressure in an engine, the temperature, or a light switch being turned on or off in a room. The data collected can be used to create smart solutions for predicting future trends, creating simulations, and drawing insights using visualizations. This makes it beneficial for organizations to make digital twins, which are digital replicas of the real environment, to support these smart solutions. This book will help you understand the concept of digital twins and how it can be implemented using an Azure service called Azure Digital Twins. Starting with the requirements and installation of the Azure Digital Twins service, the book will explain the definition language used for modeling digital twins. From there, you'll go through each step of building digital twins using Azure Digital Twins and learn about the different SDKs and APIs and how to use them with several Azure services. Finally, you'll learn how digital twins can be used in practice with the help of several real-world scenarios. By the end of this book, you'll be confident in building and designing digital twins and integrating them with various Azure services.
Table of Contents (25 chapters)
1
Section 1: Azure Digital Twin Essentials
4
Section 2: Getting Started with Azure Digital Twins
11
Section 3: Digital Twins Advanced Techniques
19
Section 4: Digital Twin Implementations in Real-world Scenarios

Creating an endpoint

To route messages, you must have an endpoint defined. This endpoint defines where the messages are routed to. In our example, we want to route the messages to our Event Grid Topic, which is called DTBEventGrid.

Endpoints are created within the Azure Digital Twins instance. Execute the following steps to create an endpoint, as shown in the following screenshot:

  1. Open the existing Azure Digital Twins instance; that is, DTBDigitalTwins.
  2. Select the Endpoints option from the left menu.
  3. Press the + Create an endpoint button at the top.
  4. Enter TemperatureWarnings as the name for our endpoint.
  5. Select Event Grid for Endpoint type.
  6. Select your subscription where you have defined DTBEventGrid.
  7. Select DTBEventGrid for Event Grid topic.
  8. Press the Save button to create the endpoint:

Figure 12.6 – Creating an endpoint in our Azure Digital Twins instance

Now, let's return to our overview of the endpoints...