Azure Policy Compliance Monitoring: A Solution in Terrafrom

This post was originally on on December 27, 2021, but moved to as the new home for Arlan’s Blogs.


This is a monitoring and email alerting solution for Non-Compliant resources in Azure.

Resources details

The list of resources created by this Bicep Project are as follows : -

  • Log Analytics Workspace
  • Event Grid Topic and Subscription
  • App Service Plan
  • Application Insights
  • Storage Account
  • Function App
  • Azure Monitor Alert Rule


Here’s a rough diagram of the resources it creates

Operations details

The creates the Resource Group and call each modules for creating the required resources. The file contains variable values for all resources.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store