Forum Discussion
Facing Issues in building the IoT Sample
Hi kenny1597
It looks like it's the connection between the Cloud Explorer in Visual Studio and the IoT Hub that is having some issues. It's trying to connect to the IoT Hub Default Endpoint to monitor messages that arriving in IoT Hub. This can be caused by several things, and the most common ones are if you are behind a firewall that blocks port 5671 which is the port used by AMQP protocol.
The other potential issue is with consumer groups on this IoT Hub default Endpoint. Do you have another app like IoT Hub explorer or your own custom made app that is monitoring messages on the same port? In which case what can happen is that the "Default" consumer group for that endpoint has reached its max # of readers.
- kenny1597Jan 30, 2020Copper ContributorHI OlivierBloch ,
Thanks for the answer. I think it was because of the firewall.
Regarding the consumer group, is there a way to solve that?- OlivierBlochJan 31, 2020Former Employee
kenny1597 unfortunately in the Visual Studio extension you cannot setup the Consumer group. However if you are using Visual Studio Code, you can create a new Consumer Group (in the IoT Hub blade in the Azure Portal) and then configure the Visual Studio code extension to use that new Consumer Group for monitoring events.