Adding existing Azure VMs (classic) to a virtual network
<p>On Azure, I have a two-VM set (both classic), whereby my web application resides on one VM, my database on another. Both map to the same DNS and belong to the same Resource Group, but both are acting as standalone cloud services at the moment. Let me explain: currently the web application communicates with the database over <em>the public DNS</em>. However, I need them to be on the same lan, so I can de-risk security and improve latency. </p>

<p>I know for a fact that they're not part of a virtual network because when I try to affix a static private IP to my database VM, I'm shown the following prompt in the portal:</p>

<blockquote>
  <p>This virtual machine can't be configured with a static private IP
  address because it's not deployed in a virtual network.</p>
</blockquote>

<p>How should I proceed to fix this misconfiguration and what should my next concrete step be? The website is live, and I don't want to risk service interruption. Ideally, both VMs should be in the same virtual network, and should communicate with eachother via a static internal IP. Please forgive my ignorance. Any help would be greatly appreciated.</p>