How to use KQL or Az Powershell/CLI to retrieve data

Martin Garrix 30 Reputation points
2023-06-13T02:31:18.3066667+00:00

Hi, I have a few questions that would need some guidance.

  1. Is there KQL query or Az commands to retrieve RBAC actions more than 90 days?
  2. Can logic apps retrieve the subscription IAM access creation date more than 90 days?

Thank you in advance!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,629 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. AirGordon 7,145 Reputation points
    2023-06-13T07:21:20.1866667+00:00

    You can extend the 90 days by configuring Export Activity Logs in the Activity Log, and increasing the total retention period.

    You can opt to increase the interactive retention, which allows you to maintain standard KQL Log Analytics query methods.

    User's image

    Or the total retention through archive;

    User's image

    Once you have done this you can query data in the archive period through using a Search Job.

    NB: You can access archived data by running a search job or restoring archived logs. REF

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.