Hands-On Azure Digital Twins

Book description

Build your own digital twin in no time!

Key Features

  • Build and design simple to complex digital twins solutions
  • Create end-to-end solutions with Azure Digital Twins
  • Integrate the Azure Digital Twins service with other Azure services to provide even richer solutions

Book Description

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.

What you will learn

  • Understand the concept and architecture of Azure Digital Twins
  • Get to grips with installing and configuring the service and required tools
  • Understand the Digital Twin Definition Language (DTDL) and digital twin models
  • Explore the APIs and SDKs available to access the Azure Digital Twins services
  • Monitor, troubleshoot, and secure digital twins
  • Discover how to build, design, and integrate applications with various Azure services
  • Explore real-life scenarios with Azure Digital Twins

Who this book is for

This book is for Azure developers, Azure architects, and anyone who wants to learn more about how to implement IoT solutions using Azure Digital Twins and additional Azure services. Prior experience using the Azure Portal and a clear understanding of building applications using .NET will be helpful.

Table of contents

  1. Hands-On Azure Digital Twins
  2. Contributors
  3. About the author
  4. About the reviewer
  5. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the color images
    5. Download the example code files
    6. Conventions used
    7. Get in touch
    8. Share Your Thoughts
  6. Section 1: Azure Digital Twin Essentials
  7. Chapter 1: About Digital Twins
    1. Understanding the concept of a Digital Twin
      1. Digital replica
      2. Entities
      3. Relationships
      4. Realities
    2. Exploring the Digital Twin environment
    3. Looking at real-world applications
      1. Smart building
      2. Education
      3. Simulation
      4. Historical data
      5. Insight and control
    4. Azure Digital Twins
      1. The Azure Digital Twins service
      2. Important terminology
      3. Open modeling language
      4. Tools
      5. Costs
    5. Understanding the components of Azure Digital Twins architecture
      1. Managing Azure Digital Twins
      2. Azure Functions
      3. Azure IoT Hub
      4. Azure IoT Hub Device Provisioning Service
      5. Azure Logic Apps
      6. Azure Storage
      7. Azure Analytics
      8. Azure Service Bus
    6. Exploring the Azure Digital Twins REST API
    7. Summary
  8. Chapter 2: Requirements and Installation
    1. Technical requirements
    2. Azure Digital Twins service
      1. Azure account
      2. Resource group
      3. Azure Digital Twins service
      4. Configuring access control
    3. Microsoft Visual Studio
    4. The Windows Azure CLI with Windows PowerShell
    5. Node.js
    6. Azure Digital Twins Explorer
      1. Download
      2. Installation
      3. Compile and run
    7. Creating your first Digital Twin
      1. Uploading models
    8. Summary
  9. Section 2: Getting Started with Azure Digital Twins
  10. Chapter 3: Digital Twin Definition Model
    1. Technical requirements
    2. Digital Twins Definition Language
      1. JSON-LD
      2. Versioning
    3. Digital Twin interface
    4. Interface content
      1. Properties
      2. Telemetry
      3. Relationships
      4. Component
    5. Schemas
    6. Primitive schemas
    7. Complex schemas
      1. Field
      2. Object
      3. Map
      4. Array
      5. Enum
    8. Geospatial schemas
    9. Semantic types
    10. Validating a model
    11. Summary
    12. Questions
    13. Further reading
  11. Chapter 4: Understanding Models
    1. Technical requirements
    2. Designing models
      1. Modeling a smart building
      2. Designing models
      3. Modeling recommendations
    3. Creating an application
    4. Managing models
      1. Creating a model
      2. Creating multiple models
      3. Inheriting from a model
      4. Deleting a model
      5. Getting a model
      6. Getting models
    5. Managing Digital Twins
      1. Creating a Digital Twin
      2. Updating a Digital Twin
      3. Deleting a Digital Twin
      4. Getting a Digital Twin
    6. Summary
    7. Questions
    8. Further reading
  12. Chapter 5: Model Elements
    1. Technical requirements
    2. Primitive properties
    3. Complex properties
    4. Telemetry
    5. Components
    6. Summary
    7. Questions
  13. Chapter 6: Creating Relationships between Azure Digital Twin Models
    1. Technical requirements
    2. Understanding relationships
    3. Creating relationships
    4. Getting relationships
      1. Getting a single relationship
      2. Getting a list of relationships
    5. Deleting relationships
    6. Relationship properties
    7. Updating relationship properties
    8. Summary
    9. Questions
    10. Further reading
  14. Chapter 7: Querying Digital Twins
    1. Technical requirements
    2. Setting up a demo graph
    3. Basic querying
    4. Querying by model
    5. Querying relationships
    6. Filtering results
    7. Querying using code
    8. Querying asynchronous calls using code
    9. Summary
    10. Questions
    11. Further reading
  15. Chapter 8: Building Models Using Ontologies
    1. Technical requirements
    2. Understanding ontologies
    3. Modeling strategy
    4. Using industry-standard ontologies
    5. Uploading ontology models
    6. Summary
    7. Questions
    8. Further reading
  16. Section 3: Digital Twins Advanced Techniques
  17. Chapter 9: APIs and SDKs
    1. Technical requirements
    2. Understanding the developer landscape
    3. Understanding the REST API
      1. Control plane
      2. Data plane
      3. SDKs
    4. Monitoring API metrics
    5. Using the Azure CLI to manage Azure Digital Twins
    6. Understanding service limits
    7. Summary
    8. Questions
    9. Further reading
  18. Chapter 10: Building a Digital Twin Pipeline
    1. Technical requirements
    2. Understanding application architecture
    3. Setting up a demo sensor using Azure IoT Central
    4. Getting sensor messages on Azure Service Bus
    5. Summary
    6. Questions
    7. Further reading
  19. Chapter 11: Updating the Model
    1. Technical requirements
    2. Updating the digital twin
      1. Updating the sensor model
      2. Creating a storage account
    3. Creating an Azure function
      1. Setting the connection string
      2. Creating an Azure function placeholder
      3. Granting the Azure function permissions
      4. Publishing the Azure function
      5. Setting the connection string
    4. Creating a digital twin for the sensor
    5. Viewing the result
    6. Summary
    7. Questions
    8. Further reading
  20. Chapter 12: Event Routing
    1. Technical requirements
    2. Data ingress and egress
    3. Event notifications
    4. Understanding event routes
    5. Creating an event grid topic
    6. Creating an endpoint
    7. Creating an event route
    8. Subscribing to event messages
    9. Monitoring event route messages
    10. Summary
    11. Questions
    12. Further reading
  21. Chapter 13: Setting up Azure Maps
    1. Technical requirements
    2. Understanding Azure Maps
    3. Creating an Azure Maps account
    4. Creating a Creator resource
    5. Building a map
    6. Uploading a map
    7. Converting a map
    8. Creating and validating a dataset
    9. Creating and validating a tileset
    10. Creating and validating a feature stateset
    11. Summary
    12. Questions
    13. Further reading
  22. Chapter 14: Integrating Azure Maps
    1. Technical requirements
    2. Updating a feature stateset
    3. Setting up an update Azure Function
    4. Publishing the Azure Function
    5. Configuring application settings
    6. Subscribing to Event Grid
    7. Monitoring updates
    8. Visualizing the model
    9. Summary
    10. Questions
    11. Further reading
  23. Chapter 15: Monitoring and Troubleshooting
    1. Technical requirements
    2. Setting up a log analytics workspace
    3. Setting up diagnostic settings
    4. Viewing logs
    5. Viewing metrics
    6. Using alerts
    7. Summary
    8. Questions
    9. Further reading
  24. Section 4: Digital Twin Implementations in Real-world Scenarios
  25. Chapter 16: Facility of the Future
    1. Understanding the scenario
    2. Designing the digital twin solution
    3. The solution architecture
    4. Summary
    5. Questions
  26. Chapter 17: Creating Digital Twins for Smart Building
    1. Understanding the smart building ecosystem
      1. Sensors
      2. Analytics
      3. User interfaces
      4. Automation
    2. A smart building solution design
    3. The smart building architecture
    4. Summary
    5. Questions
  27. Chapter 18: Simulations Using a Digital Twin
    1. Understanding simulation
    2. Solution design and architecture
      1. Work preparation
      2. Training
      3. Testing
    3. Summary
    4. Questions
  28. Assessments
    1. Chapter 3 – Digital Twin Definition Model
    2. Chapter 4 – Understanding Models
    3. Chapter 5 – Model Elements
    4. Chapter 6 – Creating Relationships between Azure Digital Twin Models
    5. Chapter 7 – Querying Digital Twins
    6. Chapter 8 – Building Models Using Ontologies
    7. Chapter 9 – APIs and SDKs
    8. Chapter 10 – Building a Digital Twin Pipeline
    9. Chapter 11 – Updating the model
    10. Chapter 12 – Event Routing
    11. Chapter 13 – Setting up Azure Maps
    12. Chapter 14 – Integrating Azure Maps
    13. Chapter 15 – Monitoring and Troubleshooting
    14. Chapter 16 – Facility of the Future
    15. Chapter 17 – Creating Digital Twins for Smart Building
    16. Chapter 18 – Simulations Using a Digital Twin
    17. Why subscribe?
  29. Other Books You May Enjoy
    1. Packt is searching for authors like you
    2. Share Your Thoughts

Product information

  • Title: Hands-On Azure Digital Twins
  • Author(s): Alexander Meijers
  • Release date: March 2022
  • Publisher(s): Packt Publishing
  • ISBN: 9781801071383