title: Configuring a secondary NIC in Azure with an Internet Gateway
body: <p>I have a VM in Azure with two NICs. Each NIC has its own subnet.
  Azure only lets the Primary NIC have a public IP address. It appears that unless you have a public IP address a NIC cannot access the Internet but I need both to have Internet access.</p>
  
  <p>Config details: 
  The Primary NIC is on subnet 10.0.0.0/24 with Gateway 10.0.0.1. This subnet is for the Management Network. I need this to ssh into the machines for host administration purposes.
  The second NIC is on subnet 203.0.113.0/24 and requires a gateway with IP address 203.0.113.1 but I of course cannot configure that. This subnet is for the application and the application requires Internet assess.
  <a href="https://i.stack.imgur.com/977uF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/977uF.png" alt="Network Layout"></a></p>
  
  <p>I am not a networking expert so I struggling to work this one out. In fact looking at the diagram maybe the Primary NIC should be the Provider Network... ???</p>
  
  <p>I <em>think</em> I need to create another VM and make it the Internet gateway - but maybe there is another way in Azure.</p>
  
  <p>Finally, I do not have a VPN set up into Azure. I am SSHing in via the public Internet - and I want to keep it that way.</p>