title: Unable to ssh to Azure VM
body: <p>I have constructed an azure VM that has a Tomcat server running and a postgreSQL database.  I was able to ssh to it with no problem until this morning.  I can't find a roadmap to actually know what is needed for this to work, I suspect I have something wrong.  I could just delete the VM and start fresh, but I would learn nothing from that activity.  My dashboard has the following:</p>
  
  <pre><code>xxxVM            Virtual Machine
  xxxSecurityGroup Network Security Group
  xxxVMNet         Virtual Network
  xxxVMVMNIC       Network Interface
  xxxVMPublicIP    Public IP address
  xxxVMNSG         Network Security Group
  storage account
  xxxVM_disk1      Disk
  </code></pre>
  
  <p>I think there could be a problem with having two Network Security Groups.  One has 1 subnet and 0 network interfaces and the other has 0 subnets and 1 network interface.  I have stopped the VM and want to delete the network security group that has the subnet and no network interface, but every time I attempt this, I get a message that the delete failed and the message content is cut off.  It tells me that the network security group is use but doesn't finish the error.  </p>
  
  <blockquote>
    <p>Failed to delete network security group 'xxxSecurityGroup'.
    Error: Network security group
    /subscriptions/12345/resourceGroups/xxxResourceGroup/providers/Microsoft.Network/networkSecurityGroups/xxxSecurityGroup
    cannot be deleted because it is in use by the following resources:
    /subscriptions/12345/resourceGroups/xxxResourceGroup/providers/Microsoft.Network/vi</p>
  </blockquote>
  
  <p>I have tried to stop anything I can but to no avail.  Any suggestions?</p>