Skip to the content.

Populate Azure Resource Group Creator Tags using Event Grid & Azure Functions at scale!

For my new job as Product Owner for Cloud foundation, I need a solution that could add creator name and date time as tags to the resource group, no matter how it was created.
I search the net and found a nice blog post about tagging all resources this using

  • Azure Functions
  • Event Grid Subscription

This enables the function to be triggered on specific events in Azure.
The blog post can be found here
in my case I only want to tag RGs for now, but since we have many resource groups and I wanted it to use as little consumption as possible, I re-wrote it from PowerShell to C#.

The source code is available on my github page

It consists of an azure function and arm templates for deploying the event grid subscription (az function template work in progress!)

Written on September 30, 2020