Received the following Error when trying to get Azure Active Directory Application signing logs.
n
Getting this error after even AzureAD Module is already installed and connected to AzureAD.
n
Get-AzureADAuditSignInLogs : The term ‘Get-AzureADAuditSignInLogs’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, ornif a path was included, verify that the path is correct and try again.nAt line:23 char:12
n
- n
-
$Log = Get-AzureADAuditSignInLogs -All $true -filter “appid eq ‘$ …n
-
CategoryInfo : ObjectNotFound: (Get-AzureADAuditSignInLogs:String) [], CommandNotFoundException
-
FullyQualifiedErrorId : CommandNotFoundException
n
n
n
n
n
n
Resolution:
n
Get-AzureADAuditSignInLogs and a few other cmdlets are not included in the default AzureAD Module. These new cmdlets are available in the AzureADPreview
n
Step1: Uninstall previously Installed AzureAD Module using the following cmdlet
n
Uninstall-Module -Name AzureAD
n
Step2: Install AzureADPreview Module using the following Cmdlet
n
Install-Module -Name AzureADPreview
n
n
n
n
After Installing AzureADPreview Module, I am able to see the cmdlets available and am able to get the results now.
n
n
#Azure AD, #Active Directory, #PowerShell