New-MgBetaDeviceManagementAuditEvent

Create new navigation property to auditEvents for deviceManagement

Note

To view the v1.0 release of this cmdlet, view New-MgDeviceManagementAuditEvent

Syntax

New-MgBetaDeviceManagementAuditEvent
   [-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-MgBetaDeviceManagementAuditEvent
   -BodyParameter <IMicrosoftGraphAuditEvent>
   [-ResponseHeadersVariable <String>]
   [-Headers <IDictionary>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create new navigation property to auditEvents for deviceManagement

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.Beta.PowerShell.Models.IMicrosoftGraphAuditEvent

System.Collections.IDictionary

Outputs

Microsoft.Graph.Beta.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.
  • [RemoteTenantId <String>]: Remote Tenant Id
  • [RemoteUserId <String>]: Remote User Id
  • [ServicePrincipalName <String>]: Service Principal Name (SPN).
  • [Type <String>]: Actor Type.
  • [UserId <String>]: User Id.
  • [UserPermissions <String- []>]: List of user permissions when the audit was performed.
  • [UserPrincipalName <String>]: User Principal Name (UPN).
  • [UserRoleScopeTags <IMicrosoftGraphRoleScopeTagInfo- []>]: List of user scope tags when the audit was performed.
    • [DisplayName <String>]: Scope Tag Display name.
    • [RoleScopeTagId <String>]: Scope Tag Id.

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.
    • [RemoteTenantId <String>]: Remote Tenant Id
    • [RemoteUserId <String>]: Remote User Id
    • [ServicePrincipalName <String>]: Service Principal Name (SPN).
    • [Type <String>]: Actor Type.
    • [UserId <String>]: User Id.
    • [UserPermissions <String- []>]: List of user permissions when the audit was performed.
    • [UserPrincipalName <String>]: User Principal Name (UPN).
    • [UserRoleScopeTags <IMicrosoftGraphRoleScopeTagInfo- []>]: List of user scope tags when the audit was performed.
      • [DisplayName <String>]: Scope Tag Display name.
      • [RoleScopeTagId <String>]: Scope Tag Id.
  • [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.
    • [Type <String>]: Audit resource's type.

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.
  • [Type <String>]: Audit resource's type.