This repository showcases a scenario of services integration in Azure where logs placed in a Blob Storage container gets processed into an Event Hub leveraging both Event Grid and Functions.
$ cd terraform
$ az login
$ terraform init
$ terraform plan -var 'services-integration-rg=<resource_group_name>'
$ terraform apply
cd functions/services-integration
func azure functionapp publish siem-integration-<suffix>
$ az storage blob upload-batch --account-name <storage-account-name> -d source-blobs -s log-files
$ export EVENT_HUB_CONN_STR="<Event Hub Connection String>"
$ export EVENT_HUB_NAME=integration-hub
$ pip install azure-eventhub
$ python event-hub-consumer.py