Muokkaa

Jaa


How to archive Microsoft Entra activity logs to an Azure storage account

If you need to store Microsoft Entra activity logs for longer than the default retention period, you can archive your logs to a storage account. We recommend that you use a general storage account and not a Blob storage account. For storage pricing information, see the Azure Storage pricing calculator.

Prerequisites

To use this feature, you need:

Archive logs to an Azure storage account

Tip

Steps in this article might vary slightly based on the portal you start from.

  1. Sign in to the Microsoft Entra admin center as at least a Security Administrator.

  2. Browse to Identity > Monitoring & health > Diagnostic settings. You can also select Export Settings from either the Audit Logs or Sign-ins page.

  3. Select + Add diagnostic setting to create a new integration or select Edit setting for an existing integration.

  4. Enter a Diagnostic setting name. If you're editing an existing integration, you can't change the name.

  5. Select the log categories that you want to stream.

  1. Under Destination Details select the Archive to a storage account check box.

  2. Select the appropriate Subscription and Storage account from the menus.

    Screenshot of the diagnostic settings

Note

The Diagnostic settings storage retention feature has been deprecated. If you're editing a diagnostic setting created when the retention option was available, those fields are still visible. For details on this change, see Migrate from diagnostic settings storage retention to Azure Storage lifecycle management.

  1. Select Save to save the setting.

  2. Close the window to return to the diagnostic settings page.