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: Verbose parameter causes problems during deployments #4651

Closed
ricmestre opened this issue May 8, 2024 · 0 comments · Fixed by #4652 or #4674
Closed

TeamsUpdateManagementPolicy: Verbose parameter causes problems during deployments #4651

ricmestre opened this issue May 8, 2024 · 0 comments · Fixed by #4652 or #4674

Comments

@ricmestre
Copy link
Contributor

Description of the issue

Even though I have tests for this resource that are not failing, even for deployments, now I tested a customer's blueprint where the deployment to another tenant reliably failed, after some troubleshooting I found out this was due to having the Verbose parameter included, after removing it everything worked.

I'll create a PR to fix this.

Microsoft 365 DSC Version

1.24.424.1

Which workloads are affected

Teams

The DSC configuration

TeamsUpdateManagementPolicy "TeamsUpdateManagementPolicy-Global"
        {
            AllowManagedUpdates  = $False;
            AllowPreview         = $False;
            AllowPublicPreview   = "FollowOfficePreview";
            Credential           = $Credscredential;
            Ensure               = "Present";
            Identity             = "Global";
            UpdateDayOfWeek      = 1;
            UpdateTime           = "18:00";
            UpdateTimeOfDay      = "6:00 PM";
            UseNewTeamsClient    = "MicrosoftChoice";
        }

Verbose logs showing the problem

VERBOSE: [REDACTED]: [[TeamsUpdateManagementPolicy]TeamsUpdateManagementPolicy-Tag:Default] Updating existing Teams Update Management Policy {Tag:Default}
{"code":"ClientError","message":"Invalid input parameters Tenant Admin can't modify first party documents","action":"Please check your request parameters. CorrelationId: b55fd536-347c-41ac-9db2-3d5f509ae706","errorCode":40006}
+ CategoryInfo          : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : ClientError,Microsoft.Teams.Policy.Administration.Cmdlets.Core.SetTeamsUpdateManagementPolicyCmdlet
+ PSComputerName        : localhost

Environment Information + PowerShell Version

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant