packer-cn/builder
nywilken 654cc4c4d5 builder/azure-arm: Set WinRMPassword on the communicator config
Build results before change
```
azure-arm: output will be in this color.

==> azure-arm: Running builder ...
azure-arm:
==> azure-arm: Provisioning with Powershell...
==> azure-arm: Provisioning with powershell script:
/tmp/powershell-provisioner922851060
==> azure-arm: Exception calling "RegisterTaskDefinition" with "7" argument(s): "(38,4):Task:"
==> azure-arm: At C:\Windows\Temp\packer-elevated-shell-5e320d29-bdbd-b619-9e64-0c8a301b9d1d.p
==> azure-arm: s1:60 char:1 ==> azure-arm: + $f.RegisterTaskDefinition($name, $t, 6,
"packer", $password, $logon_type,
==> azure-arm: $null) ...
==> azure-arm: +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm: ~~~
==> azure-arm:     + CategoryInfo          : NotSpecified:
(:) [], MethodInvocationException
==> azure-arm:     + FullyQualifiedErrorId :
ComMethodTargetInvocation
==> azure-arm:
==> azure-arm: Exception calling "GetTask" with "1"
argument(s): "The system cannot find the
==> azure-arm: file specified. (Exception from HRESULT:
0x80070002)"
==> azure-arm: At
C:\Windows\Temp\packer-elevated-shell-5e320d29-bdbd-b619-9e64-0c8a301b9d1d.p
==> azure-arm: s1:61 char:1
==> azure-arm: + $t = $f.GetTask("\$name")
==> azure-arm: + ~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm:     + CategoryInfo          : NotSpecified:
(:) [], MethodInvocationException
==> azure-arm:     + FullyQualifiedErrorId :
ComMethodTargetInvocation
==> azure-arm:
==> azure-arm: Method invocation failed because
[System.__ComObject] does not contain a
==> azure-arm: method named 'Run'.
==> azure-arm: At
C:\Windows\Temp\packer-elevated-shell-5e320d29-bdbd-b619-9e64-0c8a301b9d1d.p
==> azure-arm: s1:62 char:1
==> azure-arm: + $t.Run($null) | Out-Null
==> azure-arm: + ~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm:     + CategoryInfo          :
InvalidOperation: (Run:String) [], RuntimeExcept
==> azure-arm:    ion
==> azure-arm:     + FullyQualifiedErrorId : MethodNotFound
==> azure-arm:
Cancelling build after receiving interrupt
==> azure-arm: Removing the created Deployment object:
'pkrdp087bb80ibj'
==> azure-arm: Removing the created Deployment object:
'kvpkrdp087bb80ibj'
==> azure-arm:
==> azure-arm: Cleanup requested, deleting resource group
...
==> azure-arm: Resource group has been deleted.
Build 'azure-arm' errored: Build was cancelled.
Cleanly cancelled builds after being interrupted.
```

Build results after change
```
azure-arm: WinRM connected.
==> azure-arm: <Objs Version="1.1.0.1"
xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64
N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="2"><TNRef RefId="0" /><MS><I64 N="SourceId">3</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> azure-arm: Connected to WinRM!
==> azure-arm: Running local shell script:
/tmp/packer-shell091779215 azure-arm: 022xUtbwAH3DdqIoRCOh9caZi8tOYqcY
==> azure-arm: Provisioning with Powershell...
==> azure-arm: Provisioning with powershell script: /tmp/powershell-provisioner469853889
azure-arm: HELLO NEW USER; automatically generated aws password is: 022xUtbwAH3DdqIoRCOh9caZi8tOYqcY
==> azure-arm: Querying the machine's properties ...
```
2020-01-30 12:07:48 -05:00
..
alicloud/ecs Merge pull request #8535 from alexyueer/master 2020-01-07 12:47:23 -08:00
amazon Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
azure builder/azure-arm: Set WinRMPassword on the communicator config 2020-01-30 12:07:48 -05:00
cloudstack Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
digitalocean Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
docker Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
file Merge remote-tracking branch 'origin/master' into sharing_info 2019-12-17 11:57:09 +01:00
googlecompute Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
hcloud Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
hyperone Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
hyperv Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
jdcloud Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
linode Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
lxc Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
lxd Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
ncloud Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
null fix config decode 2020-01-15 14:27:55 -08:00
oneandone Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
openstack Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
oracle Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
osc Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
parallels Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
profitbricks Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
proxmox Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
qemu Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
scaleway Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
tencentcloud/cvm Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
triton Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
ucloud Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
vagrant Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
virtualbox Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
vmware Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
vsphere Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
yandex Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
generated_data.go Share .Device and .MountPath between builders, provisioners and post-processors (#8621) 2020-01-20 16:29:38 +01:00
generated_data_test.go Share .Device and .MountPath between builders, provisioners and post-processors (#8621) 2020-01-20 16:29:38 +01:00