sorry not a really expert in Powershell but found this that could help you 

https://stackoverflow.com/questions/27277701/powershell-get-ipv4-address-into-a-variable

I guess the level of complexity of the powershell script will be up to what 
you are after.. Bear in mind that packer can execute local and remote 
scripts.. with different provisioners, probably the most accurate for you 
is the Powershell provisioner

https://www.packer.io/docs/provisioners/powershell.html


On Friday, June 30, 2017 at 1:07:38 PM UTC+12, James Elmes wrote:
>
> I guess its not that easy to get the guest IP
>
>
>

-- 
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/44a33c31-f4fe-4d5e-9bb0-1512627a7f64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to