Is there a way to know if IoT hub quota exceed WITHOUT data ingestion?

@IamCoder 391 Reputation points

Hi All,

I have below code which give me a nice exception about IoT quota exceeded while I am ingesting data to IOT hub, but does C# sdk has any method which gives me a way to find out that quota is out for a day WITH OUT data ingestion?


Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
371 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sander van de Velde 27,051 Reputation points MVP

    Hello @@IamCoder ,

    the API solution mentioned by @SatishBoddu-MSFT is the correct one.

    A coding example of this API call is found here.

    This will return both the current number and daily maximum:


    2 people found this answer helpful.
    0 comments No comments

  2. SatishBoddu-MSFT 20,006 Reputation points

    Hello @@IamCoder thanks for posting the query on this forum.

    Iot Hub Resource - Get Quota Metrics

    Get the quota metrics for an IoT hub: This is a synchronous operation. The response contains a JSON-serialized array of the quota metrics for the IoT hub.


    Same question on SO: