Name: device-telemetry-dotnet
Owner: Microsoft Azure
Description: Device telemetry implementation in .NET for PCS
Created: 2017-06-20 20:51:02.0
Updated: 2018-03-30 19:46:32.0
Pushed: 2018-03-30 23:17:56.0
Homepage: null
Size: 179
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This service provides a RESTful endpoint for read access to device telemetry, full CRUD for rules, and read/write for alarms from storage.
This microservice was built as part of the Azure IoT Remote Monitoring project to provide a generic implementation for an end-to-end IoT solution. More information here.
You can run the microservice and its dependencies using Docker with the instructions here.
This service has a dependency on the following Azure resources. Follow the instructions for Deploy the Azure services.
This service depends on the following repository.
In order to run the service, some environment variables need to be created at least once. See specific instructions for IDE or command line setup below for more information. More information on environment variables here.
PCS_TELEMETRY_DOCUMENTDB_CONNSTRING
= {your Azure Cosmos DB connection string}PCS_STORAGEADAPTER_WEBSERVICE_URL
= http://localhost:9022/v1PCS_TELEMETRY_DOCUMENTDB_CONNSTRING
= {your Azure Cosmos DB connection string}PCS_STORAGEADAPTER_WEBSERVICE_URL
= http://localhost:9022/v1PCS_TELEMETRY_DOCUMENTDB_CONNSTRING
= {your Azure Cosmos DB connection string}PCS_STORAGEADAPTER_WEBSERVICE_URL
= http://localhost:9022/v1build
: compile all the projects and run the tests.compile
: compile all the projects.run
: compile the projects and run the service. This will prompt for
elevated privileges in Windows to run the web service.This microservice contains the following projects:
The scripts
folder includes a docker subfolder with the files
required to package the service into a Docker image:
Dockerfile
: docker images specificationsbuild
: build a Docker container and store the image in the local registryrun
: run the Docker container from the image stored in the local registrycontent
: a folder with files copied into the image, including the entry point scriptThe service configuration is stored using ASP.NET Core configuration adapters, in appsettings.ini. The INI format allows to store values in a readable format, with comments. The application also supports references to environment variables, which is used to import credentials and networking details.
The configuration files in the repository reference some environment variables that need to be created at least once. Depending on your OS and the IDE, there are several ways to manage environment variables:
Please follow our contribution guidelines. We love PRs too.
Please enter issues, bugs, or suggestions as GitHub Issues.
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.