Received the following Error when trying to get Azure Active Directory Application signing logs.
Getting this error after even AzureAD Module is already installed and connected to AzureAD.
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, or if a path was included, verify that the path is correct and try again. At line:23 char:12
- $Log = Get-AzureADAuditSignInLogs -All $true -filter “appid eq ‘$ …
- CategoryInfo : ObjectNotFound: (Get-AzureADAuditSignInLogs:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Resolution:
Get-AzureADAuditSignInLogs and a few other cmdlets are not included in the default AzureAD Module. These new cmdlets are available in the AzureADPreview
Step1: Uninstall previously Installed AzureAD Module using the following cmdlet
Uninstall-Module -Name AzureAD
Step2: Install AzureADPreview Module using the following Cmdlet
Install-Module -Name AzureADPreview
After Installing AzureADPreview Module, I am able to see the cmdlets available and am able to get the results now.
#Azure AD, #Active Directory, #PowerShell