I tried the steps in this page also : How to run Powershell command in provisioner remote-exec
But no result.
My terraform main.tf file and other dependent files:
Getting this error at the end:
Error: timeout - last error: unknown error Post http://10.1.0.4:5985/wsman: dial tcp 10.1.0.4:5985: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.