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

  1. $Log = Get-AzureADAuditSignInLogs -All $true -filter “appid eq ‘$ …n

  2. n

  3. CategoryInfo : ObjectNotFound: (Get-AzureADAuditSignInLogs:String) [], CommandNotFoundException

  4. n

  5. FullyQualifiedErrorId : CommandNotFoundException

  6. n

n

n

Get-AzureADAuditSignInLogs

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

Get-AzureADAuditSignInLogs

n

n

Get-AzureADAuditSignInLogs

n

After Installing AzureADPreview Module, I am able to see the cmdlets available and am able to get the results now.

n

Get-AzureADAuditSignInLogs

n

#Azure AD, #Active Directory, #PowerShell

Author

Leave a comment

Your email address will not be published. Required fields are marked *