This is a sample design for Internet of Things(IoT) scinario with Dynamics 365. The Internet of things (IoT) is the network of physical devices, vehicles, home appliances and other items embedded with electronics, software, sensors, actuators, and network connectivity which enables these objects to connect and exchange data. This sample is focus onto how to retreive the sensor data.
- Understand what the best solution for located huge sensor data.
- Understand how to connect to Azure Cosomos DB.
- Evaluate based on this sample design.
NoSQL is the best solition of huge data as sensor data. Azure has NoSQL that name is Azure Cosomos DB.
Azure Cosomos DB is one of NoSQL. Azure Cosomos DB has huge benefit that is Service Level Agreenent(SLA) for customer. https://azure.microsoft.com/en-us/support/legal/sla/cosmos-db/v1_1/
- Login to Azure portal
- Click to Create a resouece > Azure Cosmos DB > Create button
- Select the API to "SQL" in the create screen.
- Open this Azure Cosmos DB account
- Click [Data Explore] menu
- Create a collection (ex. SampleDB)
- Create Documents under the SampleDB collection.
A sample document { "id": "sampledata1_id", "status": "Error", ... }
- Open following site. https://github.com/jeffhollan/docdb-connector
- Click [Deploy to Azure] button
- Setting a key of your Azure Cosmos DB Account to Settings -> Application Settings in Connector
https://www.microsoft.com/en-us/dynamics/free-crm-trial.aspx
- Login to Azure portal
- Create a Logic App
- Open Logic Apps Designer
- Add a [HTTP + Swagger] item. then Enter Connector URL (ex. https://docdb-connectorb644.azurewebsites.net/swagger)
- Click Next, then Select [Query Documents]
- Enter require culomns your Azure Cosmos DB Account name, Database, Collection.
- Enter query (ex. SELECT * FROM c WHERE c.status = 'Error')