This file contains hidden or 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
IoT data type | Azure solution | |
---|---|---|
Events/Notifications | Event Grid | |
Telemetry | Event Hub | |
Twin change events | Event Hub | |
Life-cycle events | Event Grid or Event Hub (if ordering of events is critical) |
This file contains hidden or 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
Criteria | Event Grid | IoT Hub Message Routing | Event Hub | Service Bus Topics | |
---|---|---|---|---|---|
Event delivery mechanism (Push/Pull) | Push | Push | Pull | Pull | |
Supported sources | Life-cycle events | Life-cycle events | Life-cycle events | Life-cycle events | |
Telemetry | Telemetry | Telemetry | Telemetry | ||
Device twin change events | Device twin change events | Device twin change events | |||
Digital twin change events | Digital twin change events | Digital twin change events | |||
Supported targets | Webhooks | Event hubs | Acts as an event sink and requires consumers to pull data from it. SDKs in various languages are provided for the same. | Acts as a queue and requires consumers to pull data from it. SDKs in various languages are provided for the same. | |
Storage queues | Service bus queues | ||||
Event hubs | Service bus topics | ||||
Hybrid connections (Enterprise WebSocket) | Storage containers |
This file contains hidden or 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
{ | |
"name": "my-node-server", | |
"version": "0.0.1", | |
"description": "TypeScript NodeJS Server", | |
"main": "src/index.js", | |
"scripts": { | |
"tsc": "tsc", | |
"dev": "ts-node-dev --respawn --transpileOnly ./src/index.ts", | |
"prod": "tsc && node ./dist/index.js", | |
"start": "node index.js" |
This file contains hidden or 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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"sourceMap": true, | |
"outDir": "./dist", | |
"removeComments": true, | |
/* Strict Type-Checking Options */ | |
"strict": true, | |
"noImplicitAny": false, |
This file contains hidden or 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
var Keycloak = require('keycloak-connect'); | |
var fs = require('fs'); | |
var express = require('express') | |
var session = require('express-session'); | |
var https = require('https'); | |
var atob = require('atob'); | |
const path = require('path'); | |
var cors = require('cors'); | |
const HOST = 'my-awesome-sauce-app.com'; |
This file contains hidden or 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
{ | |
"realm": "my-awesome-organization", | |
"auth-server-url": "https://keyclock.server.com/auth", | |
"ssl-required": "external", | |
"resource": "ent/my-awesome-sauce-app", | |
"credentials": { | |
"secret": "400d2010-d3gf-43h7-h13y-7785e1f8373g" | |
} | |
} |
This file contains hidden or 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
/// <summary> | |
/// Retrieves the access token required to access the Power BI Pro account data. | |
/// </summary> | |
/// <returns>Access token required to access Power BI reports</returns> | |
/// <response code="200">OK</response> | |
/// <response code="401">Unauthorized</response> | |
// GET: api/reports/accessToken | |
[HttpGet] | |
[Route("api/reports/accessToken")] | |
public async Task<IHttpActionResult> GetAccessToken() |