Book Image

Azure IoT Development Cookbook

By : Yatish Patil
Book Image

Azure IoT Development Cookbook

By: Yatish Patil

Overview of this book

Microsoft’s end-to-end IoT platform is the most complete IoT offering, empowering enterprises to build and realize value from IoT solutions efficiently. It is important to develop robust and reliable solutions for your organization to leverage IoT services. This book focuses on how to start building custom solutions using the IoT hub or the preconfigured solution of Azure IoT suite. As a developer, you will be taught how to connect multiple devices to the Azure IoT hub, develop, manage the IoT hub service and integrate the hub with cloud. We will be covering REST APIs along with HTTP, MQTT and AMQP protocols. It also helps you learn Pre-Configured IoT Suite solution. Moving ahead we will be covering topics like:-Process device-to-cloud messages and cloud-to-device messages using .Net-Direct methods and device management-Query Language, Azure IoT SDK for .Net-Creating and managing, Securing IoT hub, IoT Suite and many more. We will be using windows 10 IoT core, Visual Studio, universal Windows platform. At the end, we will take you through IoT analytics and provide a demo of connecting real device with Azure IoT.
Table of Contents (10 chapters)

Calculating the pricing of IoT Hub

IoT Hub is offered in four editions: Free, S1, S2, and S3. IoT Hub is generally available. In this section, we will understand the different instance sizes and will apply a calculation to find the pricing of IoT Hub. This will help you to identify the right size, and right cost for your IoT solution.

Getting ready

The pricing table based on Microsoft Azure IoT Hub pricing is as follows:

Instance

Price

Message/Day

Message size

Free

$ 0

8,000

0.5 KB

S1

$ 50

400,000

4 KB

S2

$ 500

6,000,000

4 KB

S3

$ 5,000

300,000,000

4 KB

How to do it...

To find out the what will be the price based on the IoT solution needs we will use the pricing calculator provided by Microsoft Azure:

  1. The price is per size of the IoT Hub instance.
  2. First find out the size and units per size required.
  3. First use the following link to go to Azure pricing calculator:

https://azure.microsoft.com/en-gb/pricing/calculator/

  1. Now select the Azure service for which you want to estimate the price, in our case it is IoT Hub:
Select the service for estimation
  1. Once you have selected IoT Hub service, it will show the estimation area:
IoT Hub selected for price estimation
  1. Select the IoT Hub tier based on the number of messages per day capability you want to build in your IoT solution:
Select the IoT Hub tier
  1. Select the number of units required to full fill your requirement amount of messages per day:
Set the units for selected tier
  1. I have selected S1 tier with 2 units. It will support 800 k messages per day at $100.

There's more...

Let's consider an example to understand how the pricing works.

A device ingests the 1 KB device-to-cloud message size data per minute to the IoT Hub. The solution backend invokes a method (with 512 bytes of payload) on the device every ten minutes to trigger a specific action. The device responds to the method with a result of 200 bytes.

The device consumes 1 message * 60 minutes * 24 hours = 1440 messages per day for the device-to-cloud messages, and 2 requests plus responses * 6 times per hour * 24 hours = 288 messages for the methods, for a total of 1728 messages per day.

See also