Azure Digital Twins (ADT) gives that data context . It knows that Sensor 47 belongs to Room 312 , which is on the North Wing of Floor 3 , and that room contains a Server Rack . If the temperature rises, ADT understands the impact .
# Create twins az dt twin create --adt-name adt-warehouse-<unique> \ --dtid "WarehouseMain" \ --dtmi "dtmi:handsOn:Warehouse;1" az dt twin create --adt-name adt-warehouse-<unique> --dtid "ZoneReceiving" --dtmi "dtmi:handsOn:Zone;1" hands-on azure digital twins read online
Azure Digital Twins isn't just a database—it's the of your physical world. Go build something intelligent. Azure Digital Twins (ADT) gives that data context
We’ll simulate a temperature spike and compute a "high temperature" alert using a . Architecture Pattern: IoT Device → IoT Hub → Azure Function → ADT (patch property) The Function Logic (Python example): import json import logging import azure.functions as func from azure.digitaltwins.core import DigitalTwinsClient from azure.identity import DefaultAzureCredential def main(event: func.EventHubEvent): # Parse telemetry from IoT device telemetry = json.loads(event.get_body().decode('utf-8')) sensor_id = telemetry['sensorId'] new_temp = telemetry['temperature'] # Create twins az dt twin create --adt-name