title: Adding Azure Virtual machine to an existing availability set
body: <p>I want to create two virtual machines in Azure which should not be connected to each other. I created first virtual machine and also created an availability set as part of its creation process. </p>
  
  <p>Now when I create the second virtual machine then I don't get the availability set created as part of first virtual machine in the drop down list of availability sets. </p>
  
  <p>However if I try to connect the second virtual machine as part of first one then I am able to see the availability set created as part of first virtual machine.</p>
  
  <p>Is it mandatory for virtual machines to be connected to each other so that I can add them to the same availability set? Is this a limitation only from azure portal and there is a workaround using powershell?</p>
  
  <p>UPDATE: </p>
  
  <p>If we connect two virtual machines then we can get the benefit of availability set. However, at the same time both virtual machine becomes part of same cloud service and hence are load balanced by azure which does not support sticky session. </p>
  
  <p>My scenerio is that I have identical front-ends which needs to support sticky session. Therefore I don't want to connect them to each other. However, I want to get the benefits of availability sets as mentioned in the article on <a href="http://www.windowsazure.com/en-us/manage/windows/common-tasks/manage-vm-availability/" rel="nofollow">Availability sets</a>. </p>
  
  <p>So can I set availability set for two identical virtual machines not connected to each other?</p>