Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/Dev' into dev2
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienTschanz committed Oct 31, 2023
2 parents dc1530f + 4b425f4 commit ae96e63
Show file tree
Hide file tree
Showing 49 changed files with 5,156 additions and 568 deletions.
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Change log for Microsoft365DSC

# UNRELEASED

* AADRoleEligibilityScheduleRequest
* Fixes how the Get method retrieves existing instances for Groups.
FIXES [#3787](https://github.com/microsoft/Microsoft365DSC/issues/3787)

# 1.23.1025.1

* AADEntitlementManagementAccessPackageAssignmentPolicy
* Fixes an issue where reviewers were not properly exported
* M365DSCDRGUTIL
* Fixes an issue with Get-M365DSCDRGComplexTypeToHashtable where Beta cmdlet were not recognized for recursive calls
FIXES [#3448](https://github.com/microsoft/Microsoft365DSC/issues/3448)
* 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 @@ -24,6 +56,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 ae96e63

Please sign in to comment.