policy

claranet/policy/azurerm

Terraform Module HCL AZURERM

Terraform module for Azure Policy

Install
module "policy" {
source = "claranet/policy/azurerm"
version = "8.1.2"
}
plain text: /constructs/tfmod-claranet-policy-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure Policy ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/policy/azurerm/) This module creates an Azure Policy definition and assigns it to a list of scopes IDs (Azure Susbcriptions or Resource Groups). Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version | | -------------- | ----------------- | ---------------- | --------------- | | >= 8.x.x | Unverified | 1.8.x | >= 4.0 | | >= 7.x.x | 1.3.x | | >= 3.0 | | >= 6.x.x | 1.x | | >= 3.0 | | >= 5.x.x | 0.15.x | | >= 2.0 | | >= 4.x.x | 0.13.x / 0.14.x | | >= 2.0 | | >= 3.x.x | 0.12.x | | >= 2.0 | | >= 2.x.x | 0.12.x | | < 2.0 | | < 2.x.x | 0.11.x | | < 2.0 | Contributing If you want

Inputs (10)
NameTypeDescriptionDefault
display_namestringThe display name of the policy definition. required
parameters_contentstringParameters for the policy definition. This field is a json object that allows yo required
assignmentsmap(object({ display_name Map with maps to configure assignments. Map key is the name of the assignment. required
rule_contentstringThe policy rule for the policy definition. This is a json object representing th required
modestringThe policy mode that allows you to specify which resource types will be evaluate"All"
mgmt_group_namestringCreate the Policy Definition at the Management Group level.null
name_prefixstringOptional prefix for the generated name.""
custom_namestringThe name of the policy definition. Defaults generated.""
descriptionstringThe description of the policy definition.""
name_suffixstringOptional suffix for the generated name.""
Outputs (7)
definition_id — Azure policy definition ID.
resource — Azure policy resource object.
policy_assignments_identity_principal_id — The principal ID of the identity for policy assignments.
policy_assignment_management_group_identity_principal_id — The principal ID of the identity for management group policy assignments.
policy_assignment_subscription_identity_principal_id — The principal ID of the identity for subscription policy assignments.
policy_assignment_resource_group_identity_principal_id — The principal ID of the identity for resource group policy assignments.
policy_assignment_resource_identity_principal_id — The principal ID of the identity for resource-level policy assignments.
Resources (5)
azurerm_management_group_policy_assignmentazurerm_policy_definitionazurerm_resource_group_policy_assignmentazurerm_resource_policy_assignmentazurerm_subscription_policy_assignment
Details
FrameworkTerraform Module
LanguageHCL
Version8.1.2
Cloud AZURERM
★ Stars5
Forks11
Total downloads5.9k
Inputs10
Outputs7
Resources5
Examples1
LicenseApache-2.0
Namespaceclaranet
Updated