Open ShobuPrime opened 2 years ago
I did some digging, and apparently the error looks like it's related to some permissions error along the way
However, using the same credentials I have in my provider, I'm able to RDP directly to my Domain Host/Manager and run the New-GPO
and Get-GPO
commands with no issues.
@ShobuPrime we are experiencing the same issue on our AD environment - were you able to figure out anymore specifics on what permissions issues may be happening?
Is anybody else getting the same error message? I've configured terraform according to this https://registry.terraform.io/providers/hashicorp/ad/latest/docs#double-hop-authentication configuration and it's failing with same error code 0x80072020 for GPO creation.
I've enabled debug to extract the constructed PowerShell commands so I can mimic them in regular PowerShell window and it's failing with same message. If I change the command to something like Get-Date it's working. So it's something related with double hop authentication.
Terraform Version and Provider Version
Windows Version
Windows Server 2022 Datacenter
Affected Resource(s)
No resource/data source related to Group Policy seems to work while all other resources for this provider (example: ad_user and ad_group_membership) successfully execute..
Terraform Configuration Files
Expected Behavior
What should have happened?
Actual Behavior
What actually happened?
Steps to Reproduce