Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AuditEnabled property to EXOMailboxSettings #5747

Open
wants to merge 3 commits into
base: Dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* AADRoleEligibilityScheduleRequest
* Reduce call count when reconciling object type
FIXES [#5621](https://github.com/microsoft/Microsoft365DSC/issues/5621)
* EXOMailboxSettings
* Add AuditEnabled
* M365DSCUtil
* Add M365DSC prefix to `Remove-EmptyValue`.
FIXES [#3861](https://github.com/microsoft/Microsoft365DSC/issues/3861)
Expand Down Expand Up @@ -34,7 +36,6 @@
* EXOSmtpDaneInbound
* Updated authentication properties to align with MOF definition.
FIXES [#5709](https://github.com/microsoft/Microsoft365DSC/issues/5709)

* MISC
* PowerPlatform resource revamp to use direct REST API calls.
* Simplify export behavior for all resources and complex objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ function Get-TargetResource
[System.String]
$Locale,

[Parameter()]
[System.Boolean]
$AuditEnabled,

[Parameter()]
[System.String]
$RetentionPolicy,
Expand Down Expand Up @@ -124,6 +128,7 @@ function Get-TargetResource
AddressBookPolicy = $mailboxInfo.AddressBookPolicy
RoleAssignmentPolicy = $mailboxInfo.RoleAssignmentPolicy
SharingPolicy = $mailboxInfo.SharingPolicy
AuditEnabled = $mailboxInfo.AuditEnabled
Ensure = 'Present'
Credential = $Credential
ApplicationId = $ApplicationId
Expand Down Expand Up @@ -156,6 +161,10 @@ function Set-TargetResource
[System.String]
$Locale,

[Parameter()]
[System.Boolean]
$AuditEnabled,

[Parameter()]
[System.String]
$RetentionPolicy,
Expand Down Expand Up @@ -279,6 +288,10 @@ function Test-TargetResource
[System.String]
$Locale,

[Parameter()]
[System.Boolean]
$AuditEnabled,

[Parameter()]
[System.String]
$RetentionPolicy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class MSFT_EXOMailboxSettings : OMI_BaseResource
[Write, Description("Associated sharing policy.")] string SharingPolicy;
[Write, Description("The name of the Time Zone to assign to the mailbox")] string TimeZone;
[Write, Description("The code of the Locale to assign to the mailbox")] string Locale;
[Write, Description("The AuditEnabled parameter specifies whether to enable or disable mailbox audit logging for the mailbox. If auditing is enabled, actions specified in the AuditAdmin, AuditDelegate, and AuditOwner parameters are logged")] boolean AuditEnabled;
[Write, Description("Present ensures the Mailbox Settings are applied"), ValueMap{"Present"}, Values{"Present"}] string Ensure;
[Write, Description("Credentials of the Exchange Global Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
Expand Down