/supplychain-adt-loader

Azure function to load Azure Digital Twins instance from Supply Chain Dataset

Primary LanguagePythonOtherNOASSERTION

SupplychainDatasetBlobTrigger

Azure function to load Azure Digital Twins instance from Supply Chain Dataset

IMPORTANT : Azure Digital Twins model, dataset Excel file and Azure function versions must be aligned.

Pre-requisites

An existing Azure Digital Twins instance and an instance of DT Injector Azure Function installed and configured.

How it works

This Azure function is intended to process a Cosmo Tech Supply Chain dataset in order to load it into an Azure Digital Twins instance.

  1. To trigger the function SupplychainDatasetBlobTrigger, upload a Cosmo Tech Supply Chain dataset Excel file (.xlsx extension) into the configured container (parameter INPUT_STORAGE_CONTAINER, /Input by default) of the configured Azure Storage (connection string parameter INPUT_STORAGE_CONNECTION).
  2. Once triggered the function transforms the dataset into twin and relationships objects.
  3. Then the azure function sends these objects to a storage queue configured with parameters OUTPUT_STORAGE_CONNECTION and OUTPUT_STORAGE_QUEUE_NAME.
  4. The storage queue is consumed by an DT Injector Azure Function.


How to deploy

Deploy to Azure

Settings

  • INPUT_STORAGE_CONNECTION : connection string of the input Azure Storage account

  • INPUT_STORAGE_CONTAINER : BLOB container name in the input Storage

  • OUTPUT_STORAGE_QUEUE_NAME : connection string of the output Azure Storage account (parameter JSON_STORAGE_CONNECTION of the DT Injector)

  • OUTPUT_STORAGE_QUEUE_NAME : Queue name in the output Storage (parameter JSON_STORAGE_QUEUE of the DT Injector)