title: The term 'Get-AzADServicePrincipal' is not recognized as the name of a cmdlet, function
body: <p>I'm trying to set access policy in azure key vault by following below msdn docs</p>
  <p><a href="https://docs.microsoft.com/en-us/azure/key-vault/general/assign-access-policy-powershell" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/key-vault/general/assign-access-policy-powershell</a></p>
  <p>I followed the steps like installed AzureAd in the powershell and connected with azure. But when I run the next steps I'm facing the issue like</p>
  <pre><code>Get-AzADServicePrincipal : The term 'Get-AzADServicePrincipal' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
  path was included, verify that the path is correct and try again.
  At line:1 char:1
  + Get-AzADServicePrincipal -SearchString PI
  + ~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Get-AzADServicePrincipal:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  <p>Not sure what are the steps I'm missing.</p>