SSH and building an Azure Windows Packer image?

126 views
Skip to first unread message

Rolz64

unread,
Jun 17, 2019, 12:19:56 AM6/17/19
to Packer
Hi all, I'm trying to see if it's possible to use packer to create an Azure Windows VM but use SSH instead of WinRM to connect to the VM?

Are these all the ssh settings I need or am I missing something? 
     "communicator": "ssh",
     "ssh_agent_auth": "true",
     "ssh_timeout": "5m",
     "ssh_username": "packer",
     "ssh_password": "<password>",


Currently i'm getting this error and I have no idea what setting i'm missing. 

I'm getting the following error when I use try build my image: 

==> Some builds didn't complete successfully and had errors:
--> azure-arm: Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details." Details=[{"code":"Conflict","message":"{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"CertificateImproperlyFormatted\",\r\n        \"message\": \"The secret retrieved from https:/<keyvaultName>.vault.azure.net/secrets/packerKeyVaultSecret/<GUID>" is empty string.\"\r\n      }\r\n    ]\r\n  }\r\n}"}]

If anyone has had success with this it would be wonderful :)  

Cheers

srini

unread,
Oct 30, 2019, 1:38:03 PM10/30/19
to Packer
I am facing the same issue. Were you able to resolve this error?

Kiran

unread,
Jun 26, 2020, 7:41:21 AM6/26/20
to Packer
Hello there,

Were you able to resolve this error? Have you been able to build windows vms on azure using ssh?

Thanks,
Kiran Hegde

goff...@gmail.com

unread,
Sep 28, 2020, 5:10:50 PM9/28/20
to Packer
Was anyone able to resolve this? I'm still hitting this problem.
Reply all
Reply to author
Forward
0 new messages