title: Functioning of Azure Active Directory Module for Windows PowerShell
body: <p>I have been trying to install the Azure Active Directory Module for Windows for Powershell. So far I have not been able to find a combination of the Sign-In Assistant and Powershell module versions that allows me to create a connection in a Powershell session. My measure for success has been to run the Connect-MsolService cmdlet to create such a connection. I have tried it both from the command line and in a script. The (few) forum and blogs posts that reference this functionality have been very contradictory. </p>
  
  <p>I am using the same credentials that I use to log into manage.windowsazure.com. </p>
  
  <p>As to the specifics I have the following configuration:</p>
  
  <ul>
  <li>Windows Server 2012R2 </li>
  <li>Powershell version 4.0 ($PSVersionTable.PSVersion)</li>
  <li>Microsoft Online Services Sign-In Assistant version 7.250.4556.0</li>
  <li>Windows Azure Active Directory Module for Windows Azure version
  1.0.8362. The version number is based on the command (get-item                           C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion</li>
  </ul>
  
  <p>My questions are as follows:</p>
  
  <ol>
  <li>What versions work on Windows Server 2012R2? </li>
  <li>Is there a specific .Net version that I might be missing?</li>
  <li>Am I looking at it wrong? For example is the cmdlet
  Connect-MsolService not the metric to be using? Is there another way
  that I might verify that I have a connection?</li>
  </ol>
  
  <p>My understanding is that the Powershell cmdlets, as well as all the other methods for managing Azure, are based on the REST API's. Would that be a better way to go? Of course I would not be able to dynamically enter commands, but I would be able to validate credentials etc. </p>