Initial Commit

This commit is contained in:
2025-02-04 19:23:56 +10:00
commit ac08902f9f
13 changed files with 809 additions and 0 deletions

View File

@ -0,0 +1,18 @@
data "azuread_client_config" "current" {}
resource "azuread_group" "mem_windows_devices" {
display_name = "MEM - Devices - All Windows Computers"
owners = [data.azuread_client_config.current.object_id]
security_enabled = true
types = ["DynamicMembership"]
dynamic_membership {
enabled = true
rule = "(device.deviceOSVersion -startsWith \"10.0\") and (device.deviceOSType -eq \"Windows\")"
}
}
data "azuread_group" "mem_windows_devices" {
depends_on = [azuread_group.mem_windows_devices]
display_name = "MEM - Devices - All Windows Computers"
}