I'm trying to set access policy in azure key vault by following below msdn docs
https://docs.microsoft.com/en-us/azure/key-vault/general/assign-access-policy-powershell
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
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
Not sure what are the steps I'm missing.
