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.

is this issue resolved. I’m getting same error

I suppose a public IP is needed as well as a port 5985 to be opened in NSG.

No it isn’t resolved yet. Did you get any solution?

Hi, Any luck with this ?, I am also getting the same error