This example assumes you have previously completed the following examples:
To create the event hub use the following command line:
export EVENTHUBS_EVENTHUB=eventhubs-hub-$RANDOM
az eventhubs eventhub create \
--name $EVENTHUBS_EVENTHUB \
--resource-group $RESOURCE_GROUP \
--namespace-name $EVENTHUBS_NAMESPACE
Do NOT forget to remove the resources once you are done running the example.
1m