Share via


New-MgBetaDeviceManagementAuditEvent

Create new navigation property to auditEvents for deviceManagement

Note

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

Syntax

CreateExpanded (Default)

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>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Create

New-MgBetaDeviceManagementAuditEvent
    -BodyParameter <IMicrosoftGraphAuditEvent>
    [-ResponseHeadersVariable <String>]
    [-Headers <IDictionary>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Create new navigation property to auditEvents for deviceManagement

Permissions

Permission type Permissions (from least to most privileged)
Delegated (work or school account) DeviceManagementApps.ReadWrite.All,
Delegated (personal Microsoft account) Not supported
Application DeviceManagementApps.ReadWrite.All,

Parameters

-Activity

Friendly name of the activity.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ActivityDateTime

The date time in UTC when the activity was performed.

Parameter properties

Type:DateTime
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ActivityOperationType

The HTTP operation type of the activity.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ActivityResult

The result of the activity.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ActivityType

The type of activity that was being performed.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Actor

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

Parameter properties

Type:IMicrosoftGraphAuditActor
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AdditionalProperties

Additional Parameters

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BodyParameter

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

Parameter properties

Type:IMicrosoftGraphAuditEvent
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Create
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Category

Audit category.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ComponentName

Component name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CorrelationId

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisplayName

Event display name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Headers

Optional headers that will be added to the request.

Parameter properties

Type:IDictionary
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

The unique identifier for an entity. Read-only.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Resources

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

Parameter properties

Type:

IMicrosoftGraphAuditResource[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:RHV

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

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.