0

To connect Web App to VM I created a Vnet (point 2 site). Web app can see VM now, but:

  • it can access it just through an IP and not the host name. To use host name, I found info that I have to setup my DNS server. There are two problems with that: 1) i don't want to setup and maintain DNS 2) i don't know how to setup a DNS, so think that option is out then

  • IP which I get after VPN is established changes every time. How to specify static IP for Vnet VPN? I saw instructions how to setup static internal IP, but that's not an IP I get with VPN

  • I need to RDP into VM and start VPN manually. I don't want to do that. How to start VPN when OS boots? When VPN starts it shows some dialog waiting me to press "connect", can that be a problem in automatic vpn connection through some script?

Anyway, vnets are so far too difficult (at least for a developer like me), hope they will simplify it for commons scenarios. Please feel free to suggest some other approach for connecting PaaS (web apps) with IaaS (VM with background services, database, etc).

thanks all for answers in advance ...

1 Answer 1

1
2
  • Thanks for detailed answer! About the second point; I can access VM from WebApp only through VPN IP, not the internal IP, so why setting internal IP as static then? Third bullet; will try to follow this tutorial, but if VPN can't start automatically it makes VM totally unusable in scenario when WebApp needs to talk to VM. MS restarts my VM at least once per month, I need to prepare for this since I don't have internet access 24/7 to RDP in. Commented Jul 15, 2015 at 10:16
  • "I can access VM from WebApp only through VPN IP, not the internal IP" you lost me here my friend, when you create a Vnet, lets say with the subnet of 10.0.0.x. and you add a VM to that Vnet, lets say 10.0.0.10, and you then add Site-to-VPN gateway to the same Vnet, you will be able to connect to that Vnet using a VPN client, and communicate with the internal resources of that Vnet using the IPs assigned to them, so in this scenario, you connect using a VPN client and get a random IP address, but you would still be able to connect to the VM using the IP 10.0.0.10, which is the internal IP. Commented Jul 15, 2015 at 19:14

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.