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

IOT Hub not resolvable

Regular Member

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

Re: IOT Hub not resolvable

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)

Re: IOT Hub not resolvable

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

 

Re: IOT Hub not resolvable

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

Re: IOT Hub not resolvable

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.

Highlighted

Re: IOT Hub not resolvable

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

Re: IOT Hub not resolvable

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.

Re: IOT Hub not resolvable

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

Re: IOT Hub not resolvable

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?

Re: IOT Hub not resolvable

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