Skip to Content
Azure Serverless Computing Cookbook - Second Edition
book

Azure Serverless Computing Cookbook - Second Edition

by Praveen Kumar Sreeram, Jason Marston
November 2018
Intermediate to advanced
424 pages
10h 55m
English
Packt Publishing
Content preview from Azure Serverless Computing Cookbook - Second Edition

Developing a console application that simulates IoT data 

Perform the following steps:

  1. Create a new console application that will send events to the Event Hub. I have named it EventHubApp.
  2. Run the following commands in the NuGet package manager to install the required libraries and interact with Azure Event Hubs:
      Install-Package Microsoft.Azure.EventHubs      Install-Package Newtonsoft.Json
  1. Add the following namespaces and a reference to System.Configuration.dll:
        using Microsoft.Azure.EventHubs;         using System.Configuration;     
  1. Add the connection string to App.config, which is used to connect the event hub. The following is the code for App.config. You can get the connection string by clicking on the ConnectionStrings link in the Overview ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Azure Serverless Computing Cookbook

Azure Serverless Computing Cookbook

Praveen Kumar Sreeram
Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo
Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni

Publisher Resources

ISBN: 9781789615265Supplemental Content