external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.Graph.DeviceManagement.Administration-help.xml |
Microsoft.Graph.DeviceManagement.Administration |
2.0.0 |
Create a new auditEvent object.
Note
To view the beta release of this cmdlet, view New-MgBetaDeviceManagementAuditEvent
New-MgDeviceManagementAuditEvent [-ResponseHeadersVariable <String>] [-Activity <String>]
[-ActivityDateTime <DateTime>] [-ActivityOperationType <String>] [-ActivityResult <String>]
[-ActivityType <String>] [-Actor <IMicrosoftGraphAuditActor>] [-AdditionalProperties <Hashtable>]
[-Category <String>] [-ComponentName <String>] [-CorrelationId <String>] [-DisplayName <String>]
[-Id <String>] [-Resources <IMicrosoftGraphAuditResource[]>] [-Headers <IDictionary>]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-MgDeviceManagementAuditEvent -BodyParameter <IMicrosoftGraphAuditEvent> [-ResponseHeadersVariable <String>]
[-Headers <IDictionary>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Create a new auditEvent object.
Friendly name of the activity.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The date time in UTC when the activity was performed.
Type: DateTime
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The HTTP operation type of the activity.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The result of the activity.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The type of activity that was being performed.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A class containing the properties for Audit Actor. To construct, see NOTES section for ACTOR properties and create a hash table.
Type: IMicrosoftGraphAuditActor
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Additional Parameters
Type: Hashtable
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A class containing the properties for Audit Event. To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: IMicrosoftGraphAuditEvent
Parameter Sets: Create
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Audit category.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Component name.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The client request Id that is used to correlate activity within the system.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Event display name.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Optional headers that will be added to the request.
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The unique identifier for an entity. Read-only.
Type: String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Resources being modified. To construct, see NOTES section for RESOURCES properties and create a hash table.
Type: IMicrosoftGraphAuditResource[]
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Optional Response Headers Variable.
Type: String
Parameter Sets: (All)
Aliases: RHV
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
ACTOR <IMicrosoftGraphAuditActor>
: A class containing the properties for Audit Actor.
[(Any) <Object>]
: This indicates any property can be added to this object.[ApplicationDisplayName <String>]
: Name of the Application.[ApplicationId <String>]
: AAD Application Id.[AuditActorType <String>]
: Actor Type.[IPAddress <String>]
: IPAddress.[ServicePrincipalName <String>]
: Service Principal Name (SPN).[UserId <String>]
: User Id.[UserPermissions <String-
[]>]
: List of user permissions when the audit was performed.[UserPrincipalName <String>]
: User Principal Name (UPN).
BODYPARAMETER <IMicrosoftGraphAuditEvent>
: A class containing the properties for Audit Event.
[(Any) <Object>]
: This indicates any property can be added to this object.[Id <String>]
: The unique identifier for an entity. Read-only.[Activity <String>]
: Friendly name of the activity.[ActivityDateTime <DateTime?>]
: The date time in UTC when the activity was performed.[ActivityOperationType <String>]
: The HTTP operation type of the activity.[ActivityResult <String>]
: The result of the activity.[ActivityType <String>]
: The type of activity that was being performed.[Actor <IMicrosoftGraphAuditActor>]
: A class containing the properties for Audit Actor.[(Any) <Object>]
: This indicates any property can be added to this object.[ApplicationDisplayName <String>]
: Name of the Application.[ApplicationId <String>]
: AAD Application Id.[AuditActorType <String>]
: Actor Type.[IPAddress <String>]
: IPAddress.[ServicePrincipalName <String>]
: Service Principal Name (SPN).[UserId <String>]
: User Id.[UserPermissions <String-
[]>]
: List of user permissions when the audit was performed.[UserPrincipalName <String>]
: User Principal Name (UPN).
[Category <String>]
: Audit category.[ComponentName <String>]
: Component name.[CorrelationId <String>]
: The client request Id that is used to correlate activity within the system.[DisplayName <String>]
: Event display name.[Resources <IMicrosoftGraphAuditResource-
[]>]
: Resources being modified.[AuditResourceType <String>]
: Audit resource's type.[DisplayName <String>]
: Display name.[ModifiedProperties <IMicrosoftGraphAuditProperty-
[]>]
: List of modified properties.[DisplayName <String>]
: Display name.[NewValue <String>]
: New value.[OldValue <String>]
: Old value.
[ResourceId <String>]
: Audit resource's Id.
RESOURCES <IMicrosoftGraphAuditResource- []
>: Resources being modified.
[AuditResourceType <String>]
: Audit resource's type.[DisplayName <String>]
: Display name.[ModifiedProperties <IMicrosoftGraphAuditProperty-
[]>]
: List of modified properties.[DisplayName <String>]
: Display name.[NewValue <String>]
: New value.[OldValue <String>]
: Old value.
[ResourceId <String>]
: Audit resource's Id.
https://learn.microsoft.com/graph/api/intune-auditing-auditevent-create?view=graph-rest-1.0