New-MgDeviceManagementAuditEvent

Create a new auditEvent object.

Note

To view the beta release of this cmdlet, view New-MgBetaDeviceManagementAuditEvent

Syntax

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>]

Description

Create a new auditEvent object.

Parameters

-Activity

Friendly name of the activity.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ActivityDateTime

The date time in UTC when the activity was performed.

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ActivityOperationType

The HTTP operation type of the activity.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ActivityResult

The result of the activity.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ActivityType

The type of activity that was being performed.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Actor

A class containing the properties for Audit Actor. To construct, see NOTES section for ACTOR properties and create a hash table.

Type:IMicrosoftGraphAuditActor
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

A class containing the properties for Audit Event. To construct, see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IMicrosoftGraphAuditEvent
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Category

Audit category.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ComponentName

Component name.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CorrelationId

The client request Id that is used to correlate activity within the system.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Event display name.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Headers

Optional headers that will be added to the request.

Type:IDictionary
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Id

The unique identifier for an entity. Read-only.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProgressAction

{{ Fill ProgressAction Description }}

Type:ActionPreference
Aliases:proga
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Resources

Resources being modified. To construct, see NOTES section for RESOURCES properties and create a hash table.

Type:IMicrosoftGraphAuditResource[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Type:String
Aliases:RHV
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAuditEvent

System.Collections.IDictionary

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAuditEvent

Notes

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.