Unable to find IoT Hub

Joshua Bailey 201 Reputation points
2020-10-21T13:44:15.587+00:00

I'm trying to integrate a particle development board but i'm having issues with IoT Hub.

I am having trouble seeing my IoT Hub from the azure CLI.

When i run

az iot hub monitor-events -n Gateway-Electronic-Components

it returns

Unable to find IoT Hub: Gateway-Electronic-Components in current subscription "blah blah".

I have verified the hub is created in the dashboard and the name is correct

Also
When i run the below it returns an empty table.

az iot hub list -o table

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,258 questions
{count} vote

Accepted answer
  1. Joshua Bailey 201 Reputation points
    2020-10-22T08:03:50.107+00:00

    I never actually got the bottom of why the hub i created through the dashboard didn't show in the CLI. I ended up creating a hub using the CLI command and it worked first time.


1 additional answer

Sort by: Most helpful
  1. Cykus Systems 5 Reputation points
    2023-09-11T07:06:29.9966667+00:00

    I have having same issues. Some weeks ago, i was able to see IOT Hub , but now unable to see it in my subscription when i use CLI command.

    However when i go through the Azure web interface, i am able to see that the IOThub is attached to the subscription and resource group

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.