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.
Unable to find IoT Hub
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
1 additional answer
Sort by: Most helpful
-
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