I have an event generator connected and publishing messages into an IoT hub. How do I check what message have arrived? I'd be interested in different ways to determine (programmatically, dashboard, etc)
相关问题
- running headless chrome in an microsoft azure web
- Docker task in Azure devops won't accept "$(pw
- Register MicroServices in Azure Active Directory (
- Removing VHD's from Azure Resource Manager aft
- Cannot use the Knowledge academic API
相关文章
- SQL Azure Reset autoincrement
- How to cast Azure DocumentDB Document class to my
- Can't get azure web role to run locally using
- Azure WebApp - Unable to auto-detect the runtime s
- How to change region for Azure WebSite
- Azure webjob vs cloud service
- Azure data transfer Identity Column Seed Jumped by
- Download Azure web app?
If you want to simply test the messages, you can download the Device Explorer sample app (open source on GitHub), configure it with your connection string and monitor the messages.
Just adding two more options for future reference:
Azure CLI
Install IoT Extension
The IoT extension readme describes several ways to install the extension. The simplest way is to run
az extension add --name azure-cli-iot-ext
At a PowerShell prompt type
az login
The az login command will open a new web browser window and ask your to log into your Azure Subscription account.
Edit: Another option, you could also login in the command line:
Next we need to generate a SAS token.
We can do this by running this command in the Azure CLI window:
az iot hub generate-sas-token --duration -n
Now we have our SAS Token, we can start monitoring the hub messages by running the following command:
az iot hub monitor-events --hub-name
for more details please read: https://github.com/AzureIoTGBB/How-To-Monitor-Azure-IoT-Hub-with-Azure-CLI-2.0
Azure Function
There is a cross-platform Azure IoT Toolkit extension for Visual Studio Code to make you able to monitor the messages sent to Azure IoT Hub.
You could check out the Wiki Page to see the full features and tutorials.