Share via

Azure functions

Sai 0 Reputation points
2023-08-30T13:56:29.71+00:00

We are writing an azure function in C#. We are using event grid triggers where the event is triggered every time there is a change in value for a device in IoT Hub. We have 4 devices where each equipment have same property names. We are mapping these values to azure digital twins but each time, same value is updated to all the twins. Is there a way we can get the respective values for each twin?

Dictionary
Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Wilko van de Velde 2,241 Reputation points
    2023-08-31T06:00:51.76+00:00

    Hi Sai,

    In C# you can use the Azure Digital Twin SDK. I recently used the Query digital twin functionality to retrieve the values of all related twins.

    More info:
    https://learn.microsoft.com/en-us/azure/digital-twins/tutorial-code

    Kind regards,

    Wilko


    Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members. If you have extra questions about this answer, please click "Comment".

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.