Write-Host "Windows Administrator password is: $Env:WINDOWSPASS"
Current output
Using SSH communicator to connect: x.x.x.x
Waiting for SSH to become available...
Connected to SSH!
Provisioning with Powershell...
Provisioning with powershell script: demo.ps1
Windows Administrator password is:
Overview of the Issue
When using the new SSH on Windows functionality, it doesn't appear to be setting build.Password (that is recommend here).
It seems to be the same issue as https://github.com/hashicorp/packer-plugin-azure/issues/267
Reproduction Steps
using this provisioner
with a demo.ps1
Current output
Windows password is empty!
Plugin and Packer version
packer version: Packer v1.10.0 packer-plugin-amazon version: 1.2.8