Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I'm going through azure iot hub tutorial, creating end with error partition count 4 - why?

Depending on tutorial at microsoft website for IoT Hub if you type in second step:

az iot hub create --resource-group MyResourceGroup --name {YourIoTHubName}

in your cli, error comes up: *Invalid PartitionCount 4 - value must be between 2 and 2. If you contact a support representative please include this correlation identifier: ******-f9a8-4b36-a566-******, timestamp: 2019-06-04 14:32:30Z, errorcode: IH400016.*

See my answer below for fixing ;)

like image 624
kurtanamo Avatar asked Oct 14 '25 12:10

kurtanamo


1 Answers

This error comes up when you're in a free tier and azure wants to use default values for remaining settings, in this case like partition-count (default is 4)

Use instead:

az iot hub create --resource-group MyResourceGroup --name {YourIoTHubName}  --partition-count 2

In Free Tier you only can use 2 partions. It'll work then!

like image 181
kurtanamo Avatar answered Oct 17 '25 14:10

kurtanamo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!