pulls all Azure Active Directory (AAD) sign ins in the past 7 days
I am trying to get the last sign in logs in the past 7 days in the azure runbook, I have tried this code: $SetDate = (Get-Date).AddDays(-7); $SetDate = Get-Date($SetDate) -format yyyy-MM-dd $array = Get-AzureADAuditSignInLogs -Filter "createdDateTime gt $SetDate" |…