diff --git a/CHANGELOG.md b/CHANGELOG.md index 1254f8feee..e03f4c51a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -102,6 +102,9 @@ * [BREAKING CHANGE] Remove deprecated parameter RequireAcceptingAccountMatchInvitedAccount * TeamsMeetingPolicy * [BREAKING CHANGE] Remove deprecated parameter RecordingStorageMode +* TeamsUpdateManagementPolicy + * Added support for the new UseNewTeamsClient parameter. + FIXES [#3062](https://github.com/microsoft/Microsoft365DSC/issues/3062) * DRG * Various fixes * Cleanup generated code diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1 index a23e3e6132..8aa7f855cc 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1 @@ -38,6 +38,10 @@ function Get-TargetResource [System.String] $UpdateTimeOfDay, + [Parameter()] + [System.Boolean] + $UseNewTeamsClient, + [Parameter()] [ValidateSet('Present', 'Absent')] [System.String] @@ -98,6 +102,7 @@ function Get-TargetResource AllowPublicPreview = $policy.AllowPublicPreview UpdateDayOfWeek = $policy.UpdateDayOfWeek UpdateTime = $policy.UpdateTime + UseNewTeamsClient = $policy.UseNewTeamsClient Ensure = 'Present' Credential = $Credential ApplicationId = $ApplicationId @@ -162,6 +167,10 @@ function Set-TargetResource [System.String] $UpdateTimeOfDay, + [Parameter()] + [System.Boolean] + $UseNewTeamsClient, + [Parameter()] [ValidateSet('Present', 'Absent')] [System.String] @@ -274,6 +283,10 @@ function Test-TargetResource [System.String] $UpdateTimeOfDay, + [Parameter()] + [System.Boolean] + $UseNewTeamsClient, + [Parameter()] [ValidateSet('Present', 'Absent')] [System.String] diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof index 5a15f169b7..8cfa88cfa7 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof @@ -9,6 +9,7 @@ class MSFT_TeamsUpdateManagementPolicy : OMI_BaseResource [Write, Description("Determines the day of week to perform the updates. Value shoud be between 0 and 6.")] UInt32 UpdateDayOfWeek; [Write, Description("Determines the time of day to perform the updates. Must be a valid HH:MM format string with leading 0. For instance 08:30.")] String UpdateTime; [Write, Description("Determines the time of day to perform the updates. Accepts a DateTime as string. Only the time will be considered.")] String UpdateTimeOfDay; + [Write, Description("Determines whether or not users will use the new Teams client.")] Boolean UseNewTeamsClient; [Write, Description("Present ensures the policy exists, absent ensures it is removed."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; [Write, Description("Credentials of the Teams Admin"), EmbeddedInstance("MSFT_Credential")] string Credential; [Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;