en-US

RetentionDuration

Parameter of UnifiedAuditLogRetentionPolicy

Applies to : Security & Compliance

Description

The RetentionDuration parameter specifies how long audit log records are kept. Valid values are:

  • ThreeMonths
  • SixMonths
  • NineMonths
  • TwelveMonths
  • TenYears

This parameter is required when modifying an audit log retention policy.

Microsoft Learn documentation

Characteristics

Type
UnifiedAuditLogRetentionDuration
Accepted values
ThreeMonths, SixMonths, NineMonths, TwelveMonths, TenYears
Parameter sets
(All)

Apply

This cmdlet also requires: Priority. A command that only changes this parameter would fail: see the Microsoft documentation.