13 hours ago - edited 12 hours ago
These are the instructions on how to read messages from event hub using Service Bus Explorer:
1. Go to https://github.com/paolosalvatori/ServiceBusExplorer
As per the instructions in the link, install Chocolatey and follow the instructions to download Service Bus Explorer with Chocolatey with the respective command listed:
Install Chocolatey from cmd.exe with command:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
****If you get an error running the command above, try specifying the security protocol, otherwise, disregard this command highlighted in yellow
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
With Chocolatey from cmd.exe install Service Bus Explorer, command:
choco install ServiceBusExplorer
2. Go to Azure-> <your EventHub namespace> and click on Settings->Shared Access Policies and double click on RootManageSharedAccessKey and copy Connection string-primary key
3. From Service Bus Explorer click on Connect:
4. Change Service Bus Namespace dropdown menu and choose Enter connection string…:
5. In the Connection Settings, under Connection String, copy Connection string-primary key from step 2) and click on OK.
Create a temporary consumer group:
· Click on the hub you sent the message and create a temporary consumer group under Consumer Groups by right-clicking and click on Create Consumer Group:
· Add a name and click on Create:
· Expand up to the Consumer Groups and right click on your temporary consumer group and click on Create Consumer Group Listener
· Check Verbose. Make sure you click on the Starting Date Time UTC to let the app date and time for the search of messages. Then hit Start.
· Go to the Events tab at the bottom of the screen and look for the message you just sent.
· You will see something like the below where enqueueTimeinUTC will give you the property on the right, also take note of the sequence number and offset of the message you’re looking for. The body is in the Event Text, below as well and you will find there the details about the body you’re sending.
Please post your questions in the comments section.