How to create Azure Digital Twins backup and restore it in onter empty ADT account programmatically using WebAPI? RRS feed

  • Question

  • I am new in Azure Digital Twins. I have a task with the following requirements:

    1. Export data from ADT one subscription
    2. Import it to ADT in another subscription (which is empty).

    First of all, I guess, I should create a backup of ADT data and then restore it in empty ADT subscription.

    But how to do it? What should I do at first? Didn't meet this information in the Azure Digital Twins documentation.

    Tuesday, March 26, 2019 2:08 PM

All replies

  • Hi are you able to share more detail about your specific use case scenario? Just trying to understand better.
    Tuesday, March 26, 2019 10:52 PM
  • Hi are you able to share more detail about your specific use case scenario? Just trying to understand better.


    Our customers need to export/import Azure Digital Twins feature. Take data and structure from one ADT subscription and put to other:

    User see list of ADT data backups. He able to press Restore button. When he press it new backup should be created before restoring started.

     User also see Import ADT data button.

    Exactly my question not about how to provide UI. It about how to provide ADT data backup functionality. 
    I guess we can create ADT structure in .yaml file, using yaml serializer and store data there. 
    But how to save ADT data to file for backup feature (export) and how than restore it in other ADT subscription using by file for import feature

    Wednesday, March 27, 2019 10:40 AM
  • Linking the answer to the same question on StackOverflow 

    Tyler is right that it isn't a feature built into the product. The only thing I would add is that you could export a bunch of your topology and items in Digital Twins into a bunch of JSON files. Then you could have this in your repo and import it into another solution, might need to strip out all of the IDs. I have seen some customers where they have all of their types, and spaces/devices/senors all in their repo and during build/deployment time they push those to Digital Twins via the REST APIs. This way they can reuse items between instances. So you could do a bunch of GETs to get all of your items and then you would have that ready to put into another instance, again after clearing out the IDs. Oh also note that you can do a /spaces PUT call with all of the payload as one big bulk call and it should put everything in there. Hope some extra details here help!

    Daniel Escapa MSFT

    Thursday, June 20, 2019 10:56 PM