I don't have any examples in my pile of configs. I believe the issue you'll run into is that the windows vms on Azure don't have cloud-init, so it's not possible to directly run scripts to install the ssh server on your windows vm without first connecting via winrm which is set up by default. My suggestion would be to use winrm to connect to a vm, run the scripts necessary to set up the ssh daemon, save off that base image, and then have a main build that performs the following ssh connections. Alternatively, you could create windows vm from iso and install ssh using an autounattend script, then save that vm and import it to Azure. In either case, you'll need to check your Azure networking rules to make sure that the necessary ports and traffic types are allowed.
-- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAGPV1upLUERMsws%3D4xezk72_ZGZaLx3Ux1j3bNvQyqk5oNF5Vg%40mail.gmail.com.
