Hello @Mohammad Ajmal Yazdani ,
the API solution mentioned by @QuantumCache is the correct one.
A coding example of this API call is found here.
This will return both the current number and daily maximum:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
Hello @Mohammad Ajmal Yazdani ,
the API solution mentioned by @QuantumCache is the correct one.
A coding example of this API call is found here.
This will return both the current number and daily maximum:
Hello @Mohammad Ajmal Yazdani 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.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics?api-version=2018-04-01
Same question on SO: https://stackoverflow.com/questions/72936389/is-there-a-way-to-know-if-iot-hub-quota-exceed-without-data-ingestion