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

Pass in a virtual network as azure.vm_virtual_network #47

Closed
jamesrenfro opened this issue Dec 10, 2014 · 3 comments
Closed

Pass in a virtual network as azure.vm_virtual_network #47

jamesrenfro opened this issue Dec 10, 2014 · 3 comments

Comments

@jamesrenfro
Copy link
Contributor

It looks to me like it's not currently possible to pass in the virtual network name... is that correct? I'm hoping for something like the following:

azure.vm_location = 'West US'
azure.vm_virtual_network_name = 'myExistingVN'

I'm not a Ruby dev, but it looks like editing /vagrant-azure/lib/vagrant-azure/action/run_instance.rb slightly to add the following would be enough.

 options[:vm_virtual_network_name] = config.vm_virtual_network_name unless \
 config.vm_virtual_network_name.nil?

Do you want a pull request for this?

@jeffmendoza
Copy link
Contributor

Yes, that would be great.

jamesrenfro added a commit to jamesrenfro/vagrant-azure that referenced this issue Jan 14, 2015
jeffmendoza pushed a commit that referenced this issue Jan 14, 2015
#47: Pass in a virtual network as azure.vm_virtual_network
@sepiroth887
Copy link

can we add the subnet inside that network as well? That would be awesome!

@devigned
Copy link
Member

Closing this ticket and moving @sepiroth887 request for subnets to #61.

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

No branches or pull requests

4 participants