Skip to content

Commit

Permalink
Merge pull request microsoft#3834 from microsoft/Dev
Browse files Browse the repository at this point in the history
Release 1.23.1025.1
  • Loading branch information
NikCharlebois authored Oct 25, 2023
2 parents 033187e + 90f7ce5 commit 52106e2
Show file tree
Hide file tree
Showing 43 changed files with 5,000 additions and 524 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Change log for Microsoft365DSC

# 1.23.1025.1

* AADApplication
* Changes to how permissions drifts are logged.
FIXES [#3830](https://github.com/microsoft/Microsoft365DSC/issues/3830)
* AADAttributeSet
* Initial Release.
* AADAuthenticationContext
* Initial Release.
* AADConditionalAccessPolicy
* Adds support for Authentication Context.
FIXES [#3813](https://github.com/microsoft/Microsoft365DSC/issues/3813)
* AADSocialIdentityProvider
* Initial release.
* TeamsComplianceRecordingPolicy
* Fixes an issue where the Compliance Application ID wasn't properly retrieved.
FIXES [#3712](https://github.com/microsoft/Microsoft365DSC/issues/3712)
* DEPENDENCIES
* Updated Microsoft.Graph dependencies to version 2.8.0.
* Updated MicrosoftTeams dependency to version 5.7.1.

# 1.23.1018.1

* AADAuthenticationMethodPolicyAuthenticator
Expand All @@ -21,6 +42,9 @@
FIXES [#3777](https://github.com/microsoft/Microsoft365DSC/issues/3777)
* MISC
* Fixes fancy quotes in complex objects for extraction.
* SCSecurityFilter
* Initial release
FIXES: [#3796](https://github.com/microsoft/Microsoft365DSC/issues/3796)

# 1.23.1011.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,15 +752,14 @@ function Test-TargetResource
if ($CurrentValues.Permissions.Length -gt 0 -and $null -ne $CurrentValues.Permissions.Name)
{
$permissionsDiff = Compare-Object -ReferenceObject ($CurrentValues.Permissions.Name) -DifferenceObject ($Permissions.Name)
$driftedParams = @{}
if ($null -ne $permissionsDiff)
{
Write-Verbose -Message "Permissions differ: $($permissionsDiff | Out-String)"
Write-Verbose -Message "Test-TargetResource returned $false"
$EventMessage = "Permissions for Azure AD Application {$DisplayName} were not in the desired state.`r`n" + `
"They should contain {$($Permissions.Name)} but instead contained {$($CurrentValues.Permissions.Name)}"
Add-M365DSCEvent -Message $EventMessage -EntryType 'Warning' `
-EventID 1 -Source $($MyInvocation.MyCommand.Source)
return $false
$EventValue = "<CurrentValue>$($CurrentValues.Permissions.Name)</CurrentValue>"
$EventValue += "<DesiredValue>$($Permissions.Name)</DesiredValue>"
$driftedParams.Add('Permissions', $EventValue)
}
else
{
Expand All @@ -773,11 +772,10 @@ function Test-TargetResource
{
Write-Verbose -Message 'No Permissions exist for the current Azure AD App, but permissions were specified for desired state'
Write-Verbose -Message "Test-TargetResource returned $false"
$EventMessage = "Permissions for Azure AD Application {$DisplayName} were not in the desired state.`r`n" + `
"They should contain {$($Permissions.Name)} but instead contained {`$null}"
Add-M365DSCEvent -Message $EventMessage -EntryType 'Warning' `
-EventID 1 -Source $($MyInvocation.MyCommand.Source)
return $false

$EventValue = "<CurrentValue>`$null</CurrentValue>"
$EventValue += "<DesiredValue>$($Permissions.Name)</DesiredValue>"
$driftedParams.Add('Permissions', $EventValue)
}
else
{
Expand All @@ -800,7 +798,8 @@ function Test-TargetResource
$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys
-ValuesToCheck $ValuesToCheck.Keys `
-IncludedDrifts $driftedParams

Write-Verbose -Message "Test-TargetResource returned $TestResult"

Expand Down
Loading

0 comments on commit 52106e2

Please sign in to comment.