Azure module to deploy a Privileged Identity Management.
This module can only be applied with a Service Principal due to limitations with the Azure CLI and the AzureRM provider:
| 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 |
If you want to contribute to this repository, feel free to use our pre-commit git hook configuration which will help you automatically update and format some files for you by enforcing our Terraform code module best-practices.
More details are available in the CONTRIBUTING.md file.
This module is optimized to work with the Claranet terraform-wrapper tool
which set some terraform variables in the environment needed by this module.
More details about variables set by the terraform-wrapper available in the documentation.
module "pim" {
source = "claranet/pim/azurerm"
version = "x.x.x"
pim_enabled_groups = {
"Tenant Global Administrators Group" = {
members = [
"user.mail@tenantname.onmicrosoft.com",
"guest.user_guest.domaine#EXT#@tenantname.onmicrosoft.com",
]
roles = ["Global Administrator"]
}
"Existing Group" = {
members = [
"member1@tenantname.onmicrosoft.com",
"member2@tenantname.onmicrosoft.com",
]
roles = ["Security Operator", "Cloud App Security Administrator"]
create_group = false
}
}
}| Name | Version |
|---|---|
| azuread | ~> 3.3 |
No modules.
| Name | Type |
|---|---|
| azuread_directory_role.main | resource |
| azuread_directory_role_eligibility_schedule_request.main | resource |
| azuread_group_member.main | resource |
| azuread_group_without_members.main | resource |
| azuread_group.main | data source |
| azuread_user.main | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| pim_enabled_groups | Managed PIM groups with roles and members. | map(object({ |
n/a | yes |
| Name | Description |
|---|---|
| resource | Privileged Identity Management resource object. |
Microsoft Azure documentation: PIM