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.
- To trigger the function
SupplychainDatasetBlobTrigger
, upload a Cosmo Tech Supply Chain dataset Excel file (.xlsx
extension) into the configured container (parameterINPUT_STORAGE_CONTAINER
,/Input
by default) of the configured Azure Storage (connection string parameterINPUT_STORAGE_CONNECTION
). - Once triggered the function transforms the dataset into twin and relationships objects.
- Then the azure function sends these objects to a storage queue configured with parameters
OUTPUT_STORAGE_CONNECTION
andOUTPUT_STORAGE_QUEUE_NAME
. - The storage queue is consumed by an DT Injector Azure Function.
How to deploy
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)