Issue with win r m

When we run packer buid in the backend VM creates during this process we are seeing winrm time out issue

Error:

==> azure-arm.autogenerated_1: Removing the created Deployment object: ‘kvpkrdpvdfu0h9tfg’
==> azure-arm.autogenerated_1:
==> azure-arm.autogenerated_1: The resource group was not created by Packer, not deleting …
Build ‘azure-arm.autogenerated_1’ errored after 8 minutes 40 seconds: Timeout waiting for WinRM.

==> Wait completed after 8 minutes 40 seconds

==> Some builds didn’t complete successfully and had errors:
→ azure-arm.autogenerated_1: Timeout waiting for Win R M.

==> Builds finished but no artifacts were created.

Screeshot of error:

Increasing time out did not fix, I have used image offer 2012-R2-Datacentre, 2019-datacetnre still issue persisits