epomatti / azure-eventgrid

Event subscription to System events with Azure Event Grid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Event Grid

Subscribing to Azure system events with Event Grid.

Create the resource:

terraform init
terraform apply -auto-approve

As per Microsoft recent recommendations, implemented using CloudEvent schema.

To force trigger the topic, upload a blob file:

az storage blob upload \
    --account-name <storage-account> \
    --container-name blobs \
    --name blob.txt \
    --file blob.txt \
    --auth-mode login

A message will be pushed to the Service Bus queue.

Event Grid topic subscriptions allows for more advanced controls, such as:

  • Filters (Subject and Advanced)
  • Dead-lettering
  • Retry policies
  • Expiration time
  • Delivery headers

About

Event subscription to System events with Azure Event Grid.

License:MIT License


Languages

Language:HCL 100.0%