Export Azure Digital Twin graph programmatically

Helena Foo 66 Reputation points
2022-11-25T08:55:10.677+00:00

In the Digital Twins Explorer there is a function to "Export graph". Is there a way to do this as simple as this programmatically through the sdk or api? Without having to query all the different models and getting relationships for each twin etc. (To use periodically to save a backup of the graph state.)

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
219 questions
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP
    2022-11-28T14:14:12.453+00:00

    There is currently no built-in way to achieve this. There's been a UserVoice item for this for a long time.

    As you said, you can query all the twins and their relationships and create an export that way. Just make sure to stop your application(s) from writing to ADT while this export is running.

    A new import (or 'job') feature just came out; I would hope that it gets matched with an export feature as well.


1 additional answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,311 Reputation points
    2022-12-07T03:05:03.63+00:00

    @Helena Foo As MatthijsvdVeer mentioned, Import is the only programmatic bulk operation today. Our team is working on this feature but no timeline for it.

    Hope this clarifies. Do let us know if you have any further queries.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments