question

AtifSayeedi-1963 avatar image
0 Votes"
AtifSayeedi-1963 asked SandervandeVelde42 answered

Pricing of IoT Hub for using build-in event hub endpoint

I am using iothub Built-in enpoints for the device to cloud message.

So, is it chargeable for using this built-in endpoint.

azure-iot-hubazure-event-hubsazure-iot
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AtifSayeedi-1963 Welcome to Microsoft Q&A!
There is a similar ask and Satish provided great answer with more details here: https://docs.microsoft.com/en-us/answers/questions/353778/pricing-of-iot-hub-build-in-event-hub-endpoint.html

I would suggest you, please go through the answer and let us know if you have any further queries.

0 Votes 0 ·

Hi @AshokPeddakotla-MSFT,

I have seen that answer but it is not clear that the messages we receive using the iot-hub --> built-in endpoint(event hub) in the python client(azure-eventhub) is chargeable or not

0 Votes 0 ·

1 Answer

SandervandeVelde42 avatar image
0 Votes"
SandervandeVelde42 answered

Hello @AtifSayeedi-1963 ,

Thanks for submitting this question about Azure IoT Hub pricing.

The pricing of the IoT Hub is pretty straightforward, it's all about the number of messages sent each day.

Depending on the tier and number of units, you are allowed to send a number Device-to-Cloud and/or Cloud-to-Device messages.

For example, an S1 tier with two units makes it possible to exchange 2x400000=800000 messages per day.

This means, there are no extra costs involved other than the monthly price of the IoT Hub, even if the internal routing is used or multiple consumer groups. Even Device Provisioning service Check out the details here.

But what means consuming that number of messages?

The IoT Hub counts each kind of message (eg. D2C, C2D command, DPS enrollment) in its own way.

For example, a message from a device is calculated in chunks of 4Kb. A message of size 7Kb is calculated as two messages.

A C2D direct method with a 7KB body that returns an 11KB response is seen as 2+3=5 messages.

So it's possible to make an assumption about the number of messages needed on a daily basis.

Again, check out the details for a complete list.

If you reach the daily limitation, the IoT HUb just stops communication for the remaining number of hours that day.

You can scale up or down the number of units or even the tier by hand, within minutes.

I hope this makes it a bit more clear to you.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.