Initial Commit
This commit is contained in:
18
AzureAD_Group_MEM_Windows_workstations.tf
Normal file
18
AzureAD_Group_MEM_Windows_workstations.tf
Normal 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"
|
||||
}
|
Reference in New Issue
Block a user