packer Azure vscode

21 views
Skip to first unread message

Ashish Ashish

unread,
Oct 22, 2019, 6:01:26 PM10/22/19
to Packer
Hii all, 

I am wondering how can i pass the variables file in packer, the variables file contains client_id, client_secret, subscription id, tenant_id, 


I am using VS code for deployment, any suggestions ?

Thanks
Ashish 

Angel Rengifo Cancino

unread,
Oct 24, 2019, 11:48:10 AM10/24/19
to packe...@googlegroups.com
You can use "-var YourVar=YourValue" or "-var-file=vars-files.json" as arguments to packer build command.

Does that help?

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6246cb21-f4ad-4a5c-97ff-ed7a08a429e3%40googlegroups.com.

Ashish Ashish

unread,
Oct 25, 2019, 2:49:36 PM10/25/19
to Packer
Thanks for your reply, if i understood, i can use below syntax ...pls correct me if am worng

    ./packer build AzVmImage.json -var-file=varisbles.json

Ashish


On Thursday, 24 October 2019 10:48:10 UTC-5, Angel Rengifo Cancino wrote:
You can use "-var YourVar=YourValue" or "-var-file=vars-files.json" as arguments to packer build command.

Does that help?

On Tue, Oct 22, 2019 at 5:01 PM Ashish Ashish <ashish.s...@gmail.com> wrote:
Hii all, 

I am wondering how can i pass the variables file in packer, the variables file contains client_id, client_secret, subscription id, tenant_id, 


I am using VS code for deployment, any suggestions ?

Thanks
Ashish 

--
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 packe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages