question

cruise-6690 avatar image
0 Votes"
cruise-6690 asked shashishailaj commented

Download a sign-in report using the Azure portal

What is the method to automatically Download a sign-in repo to Download a sign-in report and Download an audit report?

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered shashishailaj commented

Hi @cruise-6690 · Thank you for reaching out.

You can create a PowerShell Script with below cmdlets and schedule it to run at desired intervals via Task Scheduler.

Note: If you use $Creds=Get-Credentials to store the credentials in the variable, make sure MFA is disabled on the account that you use.

Alternatively, you may also use below Graph Call via Graph Explorer

Read More:

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 10
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

May I ask if this command can be downloaded to local storage?

0 Votes 0 ·

May I ask if this command can download the log to local storage?

0 Votes 0 ·

Hi @cruise-6690 · Yes, it can.

0 Votes 0 ·

Can we just have our usual PowerShell?Don't need a PowerShell plug-in or version of Azure .Can this command plan task be executed?

0 Votes 0 ·

@cruise-6690 , You will need to install Azure AD preview module . The default powershell version on a windows machine does not contain those commandlets. Once you have installed the Azure AD module you should be able to use those cmdlets as mentioned above. It does not require any other plug-in to be installed and is not dependent on any Azure plugin.


1 Vote 1 ·

Hello, do you have the screenshot of login? What are the requirements? What are the commands?

0 Votes 0 ·

Hi @cruise-6690 · You need to use below cmdlets:

  1. Run Install-Module AzureADPreview to install the module.

  2. Run Connect-AzureAD and sign in with global administrator account.

  3. Run the cmdlets I have shared in my answer above.

0 Votes 0 ·

Is this the task planner that comes with Windows? There are other orders planned

0 Votes 0 ·
Show more comments