title: Connection timeout port 80 on new Azure VM with NSG rules configured
body: <p>I just created a new Ubuntu 14.04 virtual machine in Microsoft Azure using the (recommended) resource manager deployment model. The following screenshots show the deployment configuration and the resulting resources:</p>
  
  <p><a href="https://i.stack.imgur.com/MBf4y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MBf4y.png" alt="enter image description here"></a></p>
  
  <p>Once it was deployed, I accessed the VM using SSH through the public IP, logged in and installed nginx. I left it with the default configuration and did a 'curl localhost' to ensure the webserver was running. </p>
  
  <p>Then I went to the Network Security Group resource and added an Allow rule for port 80 to the Inbound rules:</p>
  
  <p><a href="https://i.stack.imgur.com/pafBo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pafBo.png" alt="enter image description here"></a></p>
  
  <p>I then opened a browser and tried to request the public IP associated with the NIC and got a connection timeout. </p>
  
  <p><strong>Edit: I can get access by disassociating the NSG from the NIC, but if I re-associate it, I will get blocked again within a few minutes.</strong> </p>
  
  <p>I have tried using the same process to set up a Windows Server VM, with IIS, but I'm getting the same result. </p>
  
  <p>What am I missing here?</p>
  
  <p>I get no errors when doing the same setup using the classic deployment model, this only occurs when trying the recommended resource manager model.</p>