Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Provisioner type - powershell-azure not working #53

Closed
mohitarora opened this issue Mar 15, 2015 · 4 comments
Closed

Provisioner type - powershell-azure not working #53

mohitarora opened this issue Mar 15, 2015 · 4 comments
Labels
Milestone

Comments

@mohitarora
Copy link

Is Provisioner type - powershell-azure even supported? I can see it in examples, one of the example is https://github.com/MSOpenTech/packer-azure/blob/master/config_examples/packer-azure_Win2012r2_inet.json but when i execute it, it simply doesn't work.

As per code, powershell-azure is not even supported. When i check the following file, it doesn't even import powershell/communicator.go which indicates that only provisioner type azure-custom-script-extension is supported.

https://github.com/MSOpenTech/packer-azure/blob/master/packer/builder/azure/driver_restapi/targets/win/step_set_provision_infrastructure.go

Am i missing something? I am using the current release version.

@paulmey
Copy link
Member

paulmey commented Mar 16, 2015

I'll take a look. A lot has changed in the code in the past few weeks. We removed the powershell builder in favor of the REST API builder. You may very well be right that the powershell provisioner is no longer functional. Do you have a use case that requires this provisioner over the custom-script provisioner?

@paulmey paulmey added the bug label Mar 16, 2015
@paulmey paulmey added this to the v1.0 milestone Mar 16, 2015
@mohitarora
Copy link
Author

No, We don't have a use case but the key will be #54 to work.

Poweshell provisioner supports folder upload but custom-script-extension doesn't

@paulmey
Copy link
Member

paulmey commented Mar 26, 2015

should we be using packer-community/packer-windows-plugins for windows images? That may fix a lot of things at the same time?
cc: @ahmetalpbalkan @Snesha

@boumenot
Copy link
Member

The ARM builder has full support for WinRM communicator and the PowerShell provisioner.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants