title: Install-Module -Name AzureAD -Scope CurrentUser -Force
body: <p>I am trying to install the AzureAD Module with Powershell on an Agent Windows 2019 Maschine in Azure DevOps. The scope is to query Get-AzureADGroupMember and see the members of that Azure AD Group. After running the DevOps Task seems that maschine is remaining in the state below, throwing
  no status. Am I missing something?</p>
  <pre><code>Install-Module -Name AzureAD -Scope CurrentUser -Force
  Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
  Connect-AzureAD
  Get-AzureADGroupMember -ObjectId &quot;xxxxx-xxxxx-xxxxxxxx&quot; 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/CRtgI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CRtgI.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/Dqxdz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dqxdz.png" alt="enter image description here" /></a></p>