Open dhansuhvt opened 5 years ago
Did you use the provider to create the computer and then do a terraform plan to move it ? If so then it will not work. There is no update capability in this provider yet. Only Create/Read / Delete
Hello..Having issue when moving computer object to new OU.Rather than moving existing compute object it's creating new computer object in target OU.
provider "ad" { domain = "${var.VM_Domain}" user = "${var.domain_user}" password = "${var.domain_admin_password}" ip = "${var.ad_server_ip}" }
Add computer to Organizational Unit of Active Directory
resource "ad_computer_to_ou" "server_ou" { ou_distinguished_name = "${var.domain_ou}" computer_name = "${var.vsphere_virtual_machine_name}" }
@dhansuhvt this provider supports create new AD Object and not to move existing AD Object from one OU to other. Results your observing is expected.
Thanks for the update .
Hello..Having issue when moving computer object to new OU.Rather than moving existing compute object it's creating new computer object in target OU. provider "ad" { domain = "${var.VM_Domain}" user = "${var.domain_user}" password = "${var.domain_admin_password}" ip = "${var.ad_server_ip}" }
Add computer to Organizational Unit of Active Directory
resource "ad_computer_to_ou" "server_ou" { ou_distinguished_name = "${var.domain_ou}" computer_name = "${var.vsphere_virtual_machine_name}" }
@dhansuhvt this provider supports create new AD Object and not to move existing AD Object from one OU to other. Results your observing is expected.
Will this feature be available at some point ?
Hello..Having issue when moving computer object to new OU.Rather than moving existing compute object it's creating new computer object in target OU.
provider "ad" { domain = "${var.VM_Domain}" user = "${var.domain_user}" password = "${var.domain_admin_password}" ip = "${var.ad_server_ip}" }
Add computer to Organizational Unit of Active Directory
resource "ad_computer_to_ou" "server_ou" { ou_distinguished_name = "${var.domain_ou}" computer_name = "${var.vsphere_virtual_machine_name}" }