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

TeamsMeetingPolicy: Cannot deploy or change if in a specific scenario #4653

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

TeamsMeetingPolicy: Cannot deploy or change if in a specific scenario #4653

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

Comments

@ricmestre
Copy link
Contributor

ricmestre commented May 8, 2024

Description of the issue

Trying to apply one of these policies from a customer to another tenant I noticed that the the policy wasn't being deployed so I created one manually through the admin portal and tried to change it with M365DSC but Test-TargetResource always returns false and no errors were present in the logs, nevertheless trying to create/set the policy via cmdlets I found the problem is because AllowCloudRecording is set to False but parameter AllowRecordingStorageOutsideRegion is also included in the blueprint and sent when creating/setting the policy which shouldn't be the case. Please note that in the admin portal once the Recording setting is set to Off then all parameters under it get disabled which means that we need to remove parameter AllowRecordingStorageOutsideRegion if AllowCloudRecording is present and set to False.

I'll send a PR to fix this.

Microsoft 365 DSC Version

1.24.424.1

Which workloads are affected

Teams

The DSC configuration

TeamsMeetingPolicy "TeamsMeetingPolicy-Tag:Kiosk_Custom"
        {
            AllowAnnotations                           = $True;
            AllowAnonymousUsersToDialOut               = $False;
            AllowAnonymousUsersToJoinMeeting           = $True;
            AllowAnonymousUsersToStartMeeting          = $False;
            AllowBreakoutRooms                         = $True;
            AllowCartCaptionsScheduling                = "DisabledUserOverride";
            AllowChannelMeetingScheduling              = $False;
            AllowCloudRecording                        = $False;
            AllowDocumentCollaboration                 = "Enabled";
            AllowEngagementReport                      = "Disabled";
            AllowExternalParticipantGiveRequestControl = $False;
            AllowIPAudio                               = $True;
            AllowIPVideo                               = $True;
            AllowMeetingCoach                          = $True;
            AllowMeetingReactions                      = $True;
            AllowMeetingRegistration                   = $True;
            AllowMeetNow                               = $True;
            AllowNDIStreaming                          = $False;
            AllowNetworkConfigurationSettingsLookup    = $False;
            AllowOrganizersToOverrideLobbySettings     = $False;
            AllowOutlookAddIn                          = $False;
            AllowParticipantGiveRequestControl         = $True;
            AllowPowerPointSharing                     = $True;
            AllowPrivateMeetingScheduling              = $False;
            AllowPrivateMeetNow                        = $True;
            AllowPSTNUsersToBypassLobby                = $True;
            AllowRecordingStorageOutsideRegion         = $False;
            AllowSharedNotes                           = $True;
            AllowTranscription                         = $False;
            AllowWatermarkForCameraVideo               = $True;
            AllowWatermarkForScreenSharing             = $True;
            AllowWhiteboard                            = $True;
            AutoAdmittedUsers                          = "EveryoneInCompany";
            ChannelRecordingDownload                   = "Allow";
            Credential                                 = $Credscredential;
            DesignatedPresenterRoleMode                = "EveryoneUserOverride";
            EnrollUserOverride                         = "Disabled";
            Ensure                                     = "Present";
            ExplicitRecordingConsent                   = "Disabled";
            Identity                                   = "Tag:Kiosk_Custom";
            InfoShownInReportMode                      = "FullInformation";
            IPAudioMode                                = "EnabledOutgoingIncoming";
            IPVideoMode                                = "EnabledOutgoingIncoming";
            LiveCaptionsEnabledType                    = "DisabledUserOverride";
            LiveInterpretationEnabledType              = "DisabledUserOverride";
            LiveStreamingMode                          = "Disabled";
            MediaBitRateKb                             = 50000;
            MeetingChatEnabledType                     = "Enabled";
            NewMeetingRecordingExpirationDays          = 60;
            PreferredMeetingProviderForIslandsMode     = "TeamsAndSfb";
            QnAEngagementMode                          = "Enabled";
            RoomPeopleNameUserOverride                 = "Off";
            ScreenSharingMode                          = "EntireScreen";
            SpeakerAttributionMode                     = "EnabledUserOverride";
            StreamingAttendeeMode                      = "Disabled";
            TeamsCameraFarEndPTZMode                   = "Disabled";
            VideoFiltersMode                           = "AllFilters";
            WhoCanRegister                             = "Everyone";
        }

Verbose logs showing the problem

New-CsTeamsMeetingPolicy : Enabling in region recording is not allowed when AllowCloudRecording is set to false. Please refer to documentation. CorrelationId: REDACTED

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