Retrieve sign-in logs using the Microsoft Graph in a diffrent timezone

alhuthaifi 1 Reputation point
2024-07-27T02:43:56.43+00:00

Hi Community

I am currently working on automation where I need to retrieve sign-in logs using the Microsoft Graph API, specifically with the Get-MgAuditLogSignIn cmdlet. The timestamps in the logs are returned in UTC (GMT), but I need to convert these timestamps to another timezone for reporting purposes.

Has anyone tried to achieve this through PowerShell function that works on an Azure Automation account?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,475 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,200 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more