-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b845a9d
commit efbc235
Showing
1 changed file
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# azuredt-wodt-adapter-azurefunction | ||
The Azure Function to deploy in the Azure pipeline to work with the azure-wodt-adapter. | ||
# Azure Function for Azure Digital Twins WoDT adapter | ||
![workflow status](https://github.com/Web-of-Digital-Twins/azuredt-wodt-adapter-azurefunction/actions/workflows/build-and-deploy.yml/badge.svg) | ||
[![License: Apache License](https://img.shields.io/badge/License-Apache_License_2.0-yellow.svg)](https://www.apache.org/licenses/LICENSE-2.0) | ||
![Version](https://img.shields.io/github/v/release/Web-of-Digital-Twins/azuredt-wodt-adapter-azurefunction?style=plastic) | ||
|
||
The Azure Function to deploy in the Azure pipeline to work with the azuredt-wodt-adapter. | ||
|
||
## Architecture | ||
The minimal pipeline to make it works is composed by four services: | ||
1. [**Azure Digital Twins**](https://learn.microsoft.com/en-us/azure/digital-twins/): it manages the Digital Twins to adapt. | ||
2. [**Azure Event Grid**](https://learn.microsoft.com/en-us/azure/event-grid/): it routes events from Azure Digital Twins along the pipeline. | ||
3. [***Azure Function***](https://learn.microsoft.com/en-us/azure/azure-functions/): it is the function of interest for this repo. It has the responsibility of creating a snapshot of the DT, starting from the event. The snapshot is then sent to the azure-wodt-adapter via the *Azure SignalR* service. | ||
4. [**Azure SignalR**](https://learn.microsoft.com/en-us/azure/azure-signalr/): it is used to make data observable. | ||
|
||
In the following, an image depicting this architecture: | ||
<center> | ||
<img src="./imgs/prototype_adt_dt.jpg" alt="azure architecture" width="50%"/> | ||
</center> | ||
|
||
## Function Configuration | ||
It requires the following environmental variables: | ||
- `ADT_SERVICE_URL`: the *Azure Digital Twins* instance url. | ||
- `AzureSignalRConnectionString`: the *Azure SignalR* connection string. | ||
|
||
## Useful resources | ||
- [`azuredt-wodt-adapter`](https://github.com/Web-of-Digital-Twins/azuredt-wodt-adapter): the middleware that used in combination with this Azure Function enable to expose ADT DTs as WoDT Digital Twins. |