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

TeamsUpdateManagementPolicy.UseNewTeamsClient has new value "NewTeamsOnly" #4496

Closed
slaurentpco opened this issue Mar 27, 2024 · 0 comments · Fixed by #4501 or #4512
Closed

TeamsUpdateManagementPolicy.UseNewTeamsClient has new value "NewTeamsOnly" #4496

slaurentpco opened this issue Mar 27, 2024 · 0 comments · Fixed by #4501 or #4512
Labels
Bug Something isn't working Teams V1.24.313.1 Version 1.24.313.1

Comments

@slaurentpco
Copy link

Description of the issue

After exporting my TeamsUpdateManagementPolicy, I have the following error when launching M365TenantConfig.ps1:

PS C:\ProgramData\Dsc\git\mpc_dsc_m365\tmp> .\M365TenantConfig.ps1
Write-Error: C:\ProgramData\Dsc\git\mpc_dsc_m365\tmp\M365TenantConfig.ps1:3682:9
Line |
3682 |          TeamsUpdateManagementPolicy "TeamsUpdateManagementPolicy-Tag: …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | At least one of the values 'NewTeamsOnly' is not supported or valid for property 'UseNewTeamsClient' on class 'TeamsUpdateManagementPolicy'. Please specify
     | only supported values: NewTeamsAsDefault, UserChoice, MicrosoftChoice, AdminDisabled.
InvalidOperation: Errors occurred while processing configuration 'M365TenantConfig'.

I guess this value is new and is missing in https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof#L12C109-L12C116

Microsoft 365 DSC Version

1.24.313.1

Which workloads are affected

Teams

The DSC configuration

TeamsUpdateManagementPolicy "TeamsUpdateManagementPolicy-Tag:Preview - Forced"
        {
            AllowManagedUpdates   = $False;
            AllowPreview          = $False;
            AllowPublicPreview    = "Forced";
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Description           = "policy to preview the new teams";
            Ensure                = "Present";
            Identity              = "Tag:Preview - Forced";
            TenantId              = $OrganizationName;
            UpdateDayOfWeek       = 1;
            UpdateTime            = "18:00";
            UpdateTimeOfDay       = "18:00";
            UseNewTeamsClient     = "NewTeamsOnly";
        }

Verbose logs showing the problem

Write-Error: C:\ProgramData\Dsc\git\mpc_dsc_m365\tmp\M365TenantConfig.ps1:3682:9
Line |
3682 |          TeamsUpdateManagementPolicy "TeamsUpdateManagementPolicy-Tag: …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | At least one of the values 'NewTeamsOnly' is not supported or valid for property 'UseNewTeamsClient' on class 'TeamsUpdateManagementPolicy'. Please specify
     | only supported values: NewTeamsAsDefault, UserChoice, MicrosoftChoice, AdminDisabled.
InvalidOperation: Errors occurred while processing configuration 'M365TenantConfig'.

Environment Information + PowerShell Version

OsName               : Microsoft Windows 10 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage           : en-GB
OsMuiLanguages       : {en-GB}

PS C:\ProgramData\Dsc\git\mpc_dsc_m365\tmp> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.8
PSEdition                      Core
GitCommitId                    7.3.8
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@andikrueger andikrueger added Bug Something isn't working Teams V1.24.313.1 Version 1.24.313.1 labels Mar 27, 2024
NikCharlebois added a commit to NikCharlebois/Microsoft365DSC that referenced this issue Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Teams V1.24.313.1 Version 1.24.313.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants