Category : terraform

Error: Could not load plugin Plugin reinitialization required. Please run "terraform init". Plugins are external binaries that Terraform uses to access and manipulate resources. The configuration provided requires plugins which can’t be located, don’t satisfy the version constraints, or are otherwise incompatible. Terraform automatically discovers provider requirements from your configuration, including providers used in child ..

Read more

Error: Could not load plugin Plugin reinitialization required. Please run "terraform init". Plugins are external binaries that Terraform uses to access and manipulate resources. The configuration provided requires plugins which can’t be located, don’t satisfy the version constraints, or are otherwise incompatible. Terraform automatically discovers provider requirements from your configuration, including providers used in child ..

Read more

My objective is to attach a new Drive to Windows VM Mapping to Azure File Share This needs to be done via Terraform $UserName = $StorageAccount $SecurePassword = ConvertTo-SecureString $StorageAccountKey -AsPlainText -Force $Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword # Mount the drive If (!(Test-Path O:)) { New-PSDrive -Name "O" -PSProvider "FileSystem" -Root "$StorageAccount.file.core.windows.net$FileShareName" -Persist ..

Read more

I’m trying to customize a VM Windows Server 2019 where I installed a Domain Controller. Here how I try to do it: resource "vsphere_virtual_machine" "Active_Directory" { name = "Active Directory" num_cpus = 2 memory = 4196 datastore_id = data.vsphere_datastore.datastore.id host_system_id = data.vsphere_host.host.id resource_pool_id = data.vsphere_resource_pool.pool.id guest_id = data.vsphere_virtual_machine.template_win2016.guest_id scsi_type = data.vsphere_virtual_machine.template_win2016.scsi_type # Configure network interface ..

Read more

So im getting an intermitting error. I’ve seemed to fix it for windows 2016 using the userdata removing hardening rules when setting up the test instance using terraform. This is the userdata: <powershell> Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore $host = Hostname #remove some hardening rules Set-ItemProperty -Path "HKLM:SoftwarePoliciesMicrosoftWindowsWinrmClient" -Name "AllowBasic" -Value 1 Set-ItemProperty ..

Read more