Azure AutoTagger is a lightweight, low-cost serverless solution that can easily be deployed to an Azure subscription. Once deployed Azure AutoTagger monitors for ResourceWriteSucess
events within the subscription and triggers an Azure Function to automatically apply a LastModifiedTimestamp
and LastModifiedBy
tag.
-
https://cloudlumberjack.com/posts/azureautotagger/: More details in a blog post describing the solution.
-
https://github.com/softchoice-corp/AzureAutoTagger: Contains the ARM template code to deploy the infrastructure and role assignments to the subscription
-
https://github.com/softchoice-corp/AzureAutoTaggerFunction: Contains the Azure Function PowerShell code
- Updated Runtime function to v4 12/5/2022 to a supported runtime, PowerShell Function also needs 7.2 for supportability
Important: You must have Owner permissions on the subscription you intend to deploy this to. The template will create a managed identity and assign it to the
Reader
andTag Contributor
roles.
Use the Deploy to Azure button to easily deploy this solution in a subscription
-- OR --
- Clone the GitHub repo locally
git clone https://github.com/softchoice-corp/AzureAutoTagger.git
- Initiate an ARM Template deployment with Azure PowerShell or Azure CLI
Azure PowerShell:
New-AzDeployment -Location "East US" -TemplateFile ".\azuredeploy.json" -resourceGroupName "rg-autotagger" -Verbose
Azure CLI:
az deployment create --location "West US" --template-file ".\azuredeploy.json" --parameters resourceGroupName=rg-autotagger