Skip to content

Commit

Permalink
Merge pull request #2557 from NikCharlebois/Fixes-#2472
Browse files Browse the repository at this point in the history
FIXES #2472
  • Loading branch information
NikCharlebois authored Nov 18, 2022
2 parents b5ef153 + 2cb7939 commit 89680b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# UNRELEASED

* SCRetentionCompliancePolicy
* Fixes issue with the TeamsChannelLocation and TeamsChatsLocation parameters that were improperly returned by the Get- function.
FIXES [#2472](https://github.com/microsoft/Microsoft365DSC/issues/2472)
* SCRetentionComplianceRule
* Fixes issue with Teams Policy where the RetentionDurationDisplayHint and ExpirationDateOption parameters weren't returned by the Get- function.
FIXES [#2472](https://github.com/microsoft/Microsoft365DSC/issues/2472)
* DEPENDENCIES
* Updated Microsoft.Graph.* to version 1.17.0;
* Updated MSCloudLoginAssistant to version 1.0.98;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ function Get-TargetResource
Comment = $PolicyObject.Comment
Enabled = $PolicyObject.Enabled
RestrictiveRetention = $PolicyObject.RestrictiveRetention
TeamsChannelLocation = [array]$PolicyObject.TeamsChannelLocation
TeamsChannelLocation = [array]$PolicyObject.TeamsChannelLocation.DisplayName
TeamsChannelLocationException = $PolicyObject.TeamsChannelLocationException
TeamsChatLocation = [array]$PolicyObject.TeamsChatLocation
TeamsChatLocation = [array]$PolicyObject.TeamsChatLocation.DisplayName
TeamsChatLocationException = $PolicyObject.TeamsChatLocationException
Credential = $Credential
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ function Get-TargetResource
Policy = $AssociatedPolicy.Name
RetentionDuration = $RuleObject.RetentionDuration
RetentionComplianceAction = $RetentionComplianceActionValue
RetentionDurationDisplayHint = $RuleObject.RetentionDurationDisplayHint
ExpirationDateOption = $RuleObject.ExpirationDateOption
Credential = $Credential
Ensure = 'Present'
}
if (-not $associatedPolicy.TeamsPolicy)
{
$result.Add('ExpirationDateOption', $RuleObject.ExpirationDateOption)
$result.Add('ExcludedItemClasses', $RuleObject.ExcludedItemClasses)
$result.Add('RetentionDurationDisplayHint', $RuleObject.RetentionDurationDisplayHint)
$result.Add('ContentMatchQuery', $RuleObject.ContentMatchQuery)
}

Expand Down

0 comments on commit 89680b2

Please sign in to comment.