Remote-exec is not executing the powershell on my azure windows 10 vm

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:

Log file:
https://raw.githubusercontent.com/ukreddy-erwin/openstacklogs/master/11-06-2020/terraform_apply.log

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.