title: How to assign a network interface to a newly created VM with ARM Powershell?
body: <p>I'm getting started with ARM in our Azure tenancy...</p>
  
  <p>Firstly, I created a resource group, <code>TEST-RG</code>.</p>
  
  <p>I've created a Network Interface in my resource group using the Portal. Let's call it <code>TEST-NIC</code> in resource group <code>TEST-RG</code>.</p>
  
  <p>I've also created a <code>DS2_V2</code> VM called <code>TEST-VM</code>, running Windows 2012 R2 and also in <code>TEST-RG</code>.</p>
  
  <p>How do I associate <code>TEST-NIC</code> with <code>TEST-VM</code>? I can't see a way of doing that in the Portal, nor can I see a way in the Portal of creating a VM with no network interface, such that I can add <code>TEST-NIC</code> later.</p>
  
  <p>So, I assume this can only be done in PS, but I'm not at all clear how...</p>
  
  <p>Have I lost the plot? Any guidance would be appreciated.</p>
  
  <p>Thanks</p>