Get-AzSubscriptionActivityLog
Syntax
Get-AzSubscriptionActivityLog
[-TenantId <String>]
[-SubscriptionId <String>]
[-TimespanHours <Int>]
[-IncludeProperties <Switch>]
[-IncludeListAndGetOperations <Switch>]
[-IdentityType <String[]>]
[-Level <String[]>]
[-Category <String[]>]
[-Caller <String[]>]
[-ResourceGroupName <String[]>]
[-ResourceProviderName <String[]>]
[-ResourceIdMatch <String>]
[-ResourceType <String[]>]
[-OperationName <String[]>]
[-Status <String[]>]Description
Permissions
Install
Connect to Azure
Examples
Example 1 - Get activity log events for the last 12 hours
Example 2 - Get activity log events for a specific identity type
Example 3 - Get activity log events for specific categories
Example 4 - Get activity log events for specific callers
Example 5 - Get activity log events with a specific severity
Example 6 - Get activity log events for specific resource groups
Example 7 - Get activity log events for specific resource providers
Example 8 - Get activity log events for a specific resource
Example 9 - Get activity log events for a specific resource type
Example 10 - Get activity log events for specific operations
Example 11 - Get activity log events with a specific status
Example 12 - Get activity log events including List and Get token operations
Example 13 - Get activity logs including additional properties
Example 14 - View the additional properties for an event
Example 15 - Group and count events by Operation

Example 16 - Group and count events by category

Parameters
Last updated
Was this helpful?