ad_gplink (Resource)

ad_gplink manages links between GPOs and container objects such as OUs.

Example Usage

resource "ad_ou" "o" {
  name        = "gplinktestOU"
  path        = "dc=yourdomain,dc=com"
  description = "OU for gplink tests"
  protected   = false
}

resource "ad_gpo" "g" {
  name        = "gplinktestGPO"
  domain      = "yourdomain.com"
  description = "gpo for gplink tests"
  status      = "AllSettingsEnabled"
}

resource "ad_gplink" "og" {
  gpo_guid  = ad_gpo.g.id
  target_dn = ad_ou.o.dn
  enforced  = true
  enabled   = true
}

Schema

Required

Optional

Import

Import is supported using the following syntax:

# The ID for this resource is comprised of the GPO GUID and the container (OU) GUID separated by 
# an underscore
$ terraform import ad_gplink 9CB8219C-31FF-4A85-A7A3-9BCBB6A41D02_5AB72AD7-1AA0-4D97-923B-6FBCDD143CB2