Skip to content

Commit

Permalink
Fixes microsoft#3062 - UseNewTeamsClient
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Mar 31, 2023
1 parent b865fc4 commit 6e8bedc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ function Get-TargetResource
[System.String]
$UpdateTimeOfDay,

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

[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -162,6 +167,10 @@ function Set-TargetResource
[System.String]
$UpdateTimeOfDay,

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

[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
Expand Down Expand Up @@ -274,6 +283,10 @@ function Test-TargetResource
[System.String]
$UpdateTimeOfDay,

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

[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e8bedc

Please sign in to comment.