cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

IOT Hub not resolvable

Sarma
7-Bedrock

IOT Hub not resolvable

Hi all,

 

I am trying to do a small IOT study with Azure. But I am getting the following err.

Could you please share your thought on how to overcome this.

Glad if you can share your sample azure-iot.conf.

Please help.

 

Error Message:

The IoT Hub host SarmaIOTStudy.azure-devices.net is not resolvable. Verify that thecxserver.protocol.hubName configuration matches an IoT hub name in the Azure Console

 

Thanks

Sarma

10 REPLIES 10

You must create an IoT hub in Azure with a name that is globally unique, not just unique for your account. The name must be between 3 and 24 characters, lowercase alphanumeric (no underscores)

Thanks for the quick response.

I have set up an IOT HUB in Microsoft Azure already under Free trial.

Please find the attached screenshot of my Azure and Azure-IOT.conf file.

Could you please share the your conf file.

 

Thanks

Sarma

 

The name you are using for your Azure IoT hub will not work because it has capital letters.

 

Try creating a new IoT hub that uses all lower case letters and is between 3 and 24 characters long

I have created a new hub with all lowercase "sarma2468iot1357unique"

But still I see same issue.

Please suggest or glad if you share a sample.

To configure your azure-iot.conf file:

 

hubname is found in Azure under: All Resources > your hub > Settings > Properties > NAME

 

eventHubName is found in Azure under: All Resources > your hub > Settings > Built-in endpoints > Events > Event Hub-compatible name

Theses two names are sometimes the same name

As you have suggested, I have rechecked the HUBNAME and EVENTHUBNAME.

They are correct in my azure-iot.conf file, but still I am getting the error.

 

Its quite frustrating to see this error for so long and I am unable to fix the issue.

Please suggest what else could you be the reason.

Attached is my working config file for an Azure IoT hub named: alsdevtesthub

 

Can you ping your hubHostname? If you can not ping it there is a networking our Azure issue

Thanks for the constant support.

 

This is the first time I am doing cloud related setup

Could you please help me how to ping to hubHostname?

Open a command window and type the command ping followed by the host you want to test. Below you can see Google responding.

 

I also tried pinging your IoT hub and I got a domain resolution to an IP address which is a good sign it is set-up, but it did not respond. I don't know if the free Azure account allows IoT hubs, or if there is some network restriction on the Azure side that prevents me from connecting

 

pinggrab.png

so kind of you and thanks for sharing the details.

 

Do you have any suggestions how to rectify this using FREE account.

 

or Do you suggest to try using AWS cloud instead, if it is relatively straight forward.

Announcements


Top Tags