Skip to content

Is it possible to extract Activity Logs for a subscription as seen in azure console using the sdk? #18670

Closed

Description

Is your feature request related to a problem? Please describe.
I would like to view role assignment creation and deletion activity for a stipulated time. Currently I have to login manually to the console and download logs as csv. I wish to automate this process.
Describe the solution you'd like
A clear and concise description of what you want to happen.

  1. Login to azure console with access keys and client id.
  2. Create Service Prinicipals and generate access token and request management url to list activity logs reports using a LogsManagementClient.
  3. Store the listed activity logs in csv
    Describe alternatives you've considered
    Given the size of sdk I tried looking into the azure core and azure-mgmt-operations but to no avail. Can some azure expert shed light on what package can be used to extract these logs?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.MonitorMonitor, Monitor Ingestion, Monitor Querycustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions