This article is a solution idea. If you'd like us to expand the content with more information, such as potential use cases, alternative services, implementation considerations, or pricing guidance, let us know by providing GitHub feedback.
Azure Event Grid can serve as an essential building block in the automation of cloud operations.
Download an SVG file of this architecture.
- A user deploys a new resource in Azure. In this case, the resource is a virtual machine (VM).
- The deployment creates the VM.
- The Azure subscription of the VM emits an event that Event Grid subscribes to.
- Event Grid fires an event that the subscriber Automation account receives.
- The Automation account reacts to the event by completing a task. For example, Automation applies a tag to the new VM.
- Optionally, Azure Logic Apps also consumes the Event Grid event. A logic app reacts to the event, for example by making an entry in an operation tool.
This solution helps you simplify the process of managing resources.
Specifically, Event Grid can consume topics from multiple services in Azure. In this solution, Event Grid uses Azure subscriptions as a source. As a result, when a VM is created, Event Grid is notified. Event Grid can then notify an Automation account.
These events provide a way to automate resource management tasks.
Potential use cases
This solution has many applications. Examples include automating the following tasks:
- Checking whether service configurations are compliant
- Inserting metadata into operations tools
- Tagging VMs
- Filing work items
- Sample quickstart custom events
- Azure subscription as an Event Grid source
- How to subscribe to events in the Azure portal
- What is Azure Event Grid?
- Quickstart: Create an Automation account using the Azure portal
- What is Azure Logic Apps?