I am trying to build a multi-machine vagrant script using vagrant\azure provider. Building the machines under a cloud service is pretty straight forward. However, I am in need to run a bash script to do some provision tasks once the machines are up. In those bash scripts I need to know the IP address (the private IP address of the VM, not the virtual IP).
My understanding (please correct me if I am wrong) is I can't really set private IP to VM instances (even If I define a range in a virtual network, it doesn't guarantee the exact IP ), so I need to know them some how once the machine is created. and before executing the script.
How can I do that? Any suggestions are greatly appreciated.