title: Azure Remote app: How do I evaluate the user that is running my application?
body: <p>I have a simple VB.net console application that displays the current user, waits for key input, and then exits. It uses the following call to display the information:</p>
  
  <pre><code>System.Security.Principal.WindowsIdentity.GetCurrent.Name.ToString()
  </code></pre>
  
  <p>If I create a remote app hosting this application, and create an azure user that has rights to run the remote app such as;</p>
  
  <p><strong>thisisa@test.onmicrosoft.com</strong></p>
  
  <p>When this user connects to the remote app the output of the line of code above would look something like;</p>
  
  <p><strong>YLSDAAYU0007\thisisa_000</strong></p>
  
  <p>Is there anyway of reading the user running the remoteapp at the time? in this case, I am looking to obtain <strong>thisisa@test.onmicrosoft.com</strong> ?</p>