07 Export data from Azure IoT Central - gloveboxes/AiPoweredPredictiveMaintenance GitHub Wiki

Post data from IoT Central to the Logic app

Now you've connected Microsoft Teams team with a Logic app, you need to connect Azure IoT Central to the Logic app.

Export Azure IoT Central data

  1. Go to Azure IoT Central.
  2. Select Data export from the Azure IoT Central sidebar menu.

Create a new destination

  1. Select Destinations.

    The image shows the create destination tab

  2. Select + New destination.

  3. Name the destination Predictive Maintenance Logic App

  4. Select Webhook from the Destination type selection.

  5. Paste the HTTP POST URL you saved when creating the Logic app.

  6. Select Save to create the destination.

Create a new data export

  1. Select Data export from the Azure IoT Central sidebar menu.
  2. Select + New export.
  3. Name the export Predictive Maintenance.
  4. Select Property changes from the Type of data to export selection.

Add a filter

  1. Select + Filter.
  2. Select Device template from the Name selection.
  3. Select the Predictive Maintenance template from the Device template selection.

Add Enrichments

  1. Add the following Keys and Values by selecting + Property.

    key Select value
    ContactName Predictive Maintenance / Contact Name
    ContactNumber Predictive Maintenance / Contact Number
    DeviceDescription Predictive Maintenance / Device description
    DeviceLocation Predictive Maintenance / Device Location
    DeviceName Device Name
    FaultPrediction Fault Prediction

Select a destination

  1. Select + Destinations.
  2. Select Predictive Maintenance Logic App from the destinations selection.
  3. Select Save.