Azure
Generate a SAS token
Generate a secure token for Azure Event Hubs REST APIs
After you’ve created a Shared Access Policy (SAP) you need to generate the token to use.
We need to generate these ourselves, but luckily, Azure provides some code for us. Below is a small node script using this code to make life easy.
index.js
You’ll need to fill in those 3 variables based on your project and then run. node index.js
That will spit out a value that you set the Authorization
header to whenever you send a event to your Queue/Topic/etc.