Packer automatically sets the env var PACKER_HTTP_ADDR as an environment
variable when calling the Powershell provisioner, so you don't need to do
what you're doing with the `environment_vars` in the powershell
provisioner.  Just access it like this:

```
{
      "type": "powershell",
      "elevated_user": "Administrator",
      "elevated_password": "MYPASSWORDHERE",
      "inline": [
        "Invoke-WebRequest $Env:PACKER_HTTP_ADDR/MyUtil.exe -OutFile
C:\\Utilities\\MyUtil.exe"
      ]
    }
```

-- 
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/mitchellh/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/CAGPV1uo3cF_Z_W%3DbCn6-bUkDOVxSz%2BeVcCPAb6338AmODvoz9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to