cancel
Showing results for 
Search instead for 
Did you mean: 
1WSCGomez
Moderator
Moderator

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

1WSCGomez_9-1796389122759.png

3.       From Service Bus Explorer click on Connect:

1WSCGomez_10-1796389141148.png

4.       Change Service Bus Namespace dropdown menu and choose Enter connection string…:

1WSCGomez_11-1796389158893.png

5.       In the Connection Settings, under Connection String, copy Connection string-primary key from step 2) and click on OK.

1WSCGomez_12-1796389175393.png

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:

1WSCGomez_13-1796389187275.png

 ·       Expand up to the Consumer Groups and right click on your temporary consumer group and click on Create Consumer Group Listener

 

1WSCGomez_14-1796389196843.png

·       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.

1WSCGomez_15-1796389206823.png

·       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.

1WSCGomez_16-1796389219487.png
  • Since you will see the sequence number and the offset in the right pane above, you can then look in the Listener tab next to the events at the bottom and look with the sequence number and offset for the exact time with seconds 😊
1WSCGomez_17-1796389235102.png

Please post your questions in the comments section.

 

Download the material below:

Version history
Revision #:
2 of 2
Last update:
12 hours ago
Updated by:
 
Contributors