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 file and other dependent files:

Log file:

Getting this error at the end:
Error: timeout - last error: unknown error Post dial tcp 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.