- Clone the repo locally
- Run
cd reactor-ais/02-servicebus
- Update infra.azcli with your resource group name, namespace name, location and queue name.
- Run
. infra.cli
After the environment is created, move to the next step.
export SERVICEBUS_CONN_STR=$(az servicebus namespace authorization-rule keys list --resource-group $RESOURCE_GROUP --namespace-name $NAMESPACE_NAME --name RootManageSharedAccessKey --query primaryConnectionString --output tsv)
export QUEUE_NAME=$QUEUE_NAME
pip install azure-servicebus
First, run sender.py to send messages to the queue.
python sender.py
Then, run receiver.py to receive messages from the queue.
python receiver.py
On the Azure Portal, open your Azure Service bus instance and Queue. Navigate to Service Bus Explorer to see the messages being consumed and sent in real-time.
az group delete --name $RESOURCE_GROUP