The following declaration reads the Policy Definition from Azure
data “azurerm_policy_definition” “webb-app-https” {
display_name = “Web Application should only be accessible over HTTPS”
}
When we do customizations we want to instead read the Policy from a JSON file. But how can we do that?
Example how this could look like…?
data “azurerm_policy_definition” “webb-app-https” {
policy_body = file(“webb-app-https.json”)
}