Skip to content

Commit

Permalink
Merge pull request #4656 from ricmestre/fix4655
Browse files Browse the repository at this point in the history
TeamsAudioConferencingPolicy: Fix export and creation/set
  • Loading branch information
NikCharlebois committed May 14, 2024
2 parents 8890978 + 0231cb9 commit be8d83e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
ExcludeRestrictedSiteClassifications needed to be changed but the latter got
the value of the former instead of the correct one
FIXES [#4658](https://github.com/microsoft/Microsoft365DSC/issues/4658)
* TeamsAudioConferencingPolicy
* Fix export and creation/set of this resource by converting a string array
into a comma-separated string and a comma-separated string into a string
array respectively
FIXES [#4655](https://github.com/microsoft/Microsoft365DSC/issues/4655)
* TeamsMeetingPolicy
* Fix creation and set of resource when cloud recording is set to false (off)
FIXES [#4653](https://github.com/microsoft/Microsoft365DSC/issues/4653)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function Get-TargetResource
$results = @{
Identity = $instance.Identity
AllowTollFreeDialin = $instance.AllowTollFreeDialin
MeetingInvitePhoneNumbers = $instance.MeetingInvitePhoneNumbers
MeetingInvitePhoneNumbers = $instance.MeetingInvitePhoneNumbers -join ','
Ensure = 'Present'
Credential = $Credential
ApplicationId = $ApplicationId
Expand Down Expand Up @@ -171,6 +171,11 @@ function Set-TargetResource
$PSBoundParameters.Remove('ManagedIdentity') | Out-Null
$PSBoundParameters.Remove('AccessTokens') | Out-Null

if (![String]::IsNullOrEmpty($MeetingInvitePhoneNumbers))
{
[String[]]$MeetingInvitePhoneNumbers = $MeetingInvitePhoneNumbers.Split(',')
}

if ($Ensure -eq 'Present' -and $currentInstance.Ensure -eq 'Absent')
{
$CreateParameters = ([Hashtable]$PSBoundParameters).Clone()
Expand Down

0 comments on commit be8d83e

Please sign in to comment.