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

Follow-Up: New-M365DSCDeltaReport: "No discrepancies have been found!" when adding an exclusion to Conditional Access Policies #4796

Open
Raimer1988 opened this issue Jun 26, 2024 · 0 comments

Comments

@Raimer1988
Copy link

Description of the issue

I am as a follow-up to the ticket "New-M365DSCDeltaReport: "No discrepancies have been found!" when adding an exclusion to Conditional Access Policies #4680 "

I am experiencing the exact same issue, but have not been able to resolve it by removing "-" from my configuration name (which was mentioned as the solution to the original issue).
I have updated the module, updated dependencies and uninstall outdated dependencies by running Update-M365DSCModule , Update-M365DSCDependencies -Force and Uninstall-M365DSCOutdatedDependencies but this has not helped resolve the issue.

I can replicate the issue with these cmdlets:
Export-M365DSCConfiguration -Components @("AADConditionalAccessPolicy", "SpoSharingSettings") -ApplicationId 'redacted' -CertificateThumbprint 'redacted' -TenantId 'redacted' -Path "C:\Temp\Approved\" -FileName "TestApproved.ps1"

Export-M365DSCConfiguration -Components @("AADConditionalAccessPolicy", "SpoSharingSettings") -ApplicationId 'redacted' -CertificateThumbprint 'redacted' -TenantId 'redacted' -Path "C:\Temp\Not Approved\" -FileName "Test.ps1"

New-M365DSCDeltaReport -Source "C:\Temp\Approved\TestApproved.ps1" -Destination "C:\Temp\Not Approved\Test.ps1" -OutputPath "C:\Temp\delta.html" -Type HTML

These are the exported files (changed the file extension and redacted some information):
Test - Copy.ps1.txt
TestApproved - Copy.ps1.txt

This is the delta report (changed the file extension)
delta.html.txt

All assistance is greatly appreciated!

Microsoft 365 DSC Version

1.24.619.1

Which workloads are affected

other

The DSC configuration

Not sure what to put in here.
Will gladly supply more information if needed.

Verbose logs showing the problem

-Verbose does not show any issues, but I'm including it here, for good measure:

New-M365DSCDeltaReport -Source "C:\Temp\Approved\TestApproved.ps1" -Destination "C:\Temp\Not Approved\Test.ps1" -OutputPath "C:\Temp\delta.html" -Type HTML -DriftOnly $true -Verbose                                                                      WARNING: File specified in parameter OutputPath already exists and will be overwritten: C:\Temp\delta.html                                                                                                                                                                              WARNING: Make sure you specify a file that not exists, if you don't want the file to be overwritten!                                                                                                                                                                                    VERBOSE: Obtaining Delta between the source and destination configurations                                                                                                                                                                                                              VERBOSE: Loading file 'C:\Temp\Approved\TestApproved.ps1'                                                                                                                                                                                                                               VERBOSE: Loading file 'C:\Temp\Not Approved\Test.ps1'

Environment Information + PowerShell Version

OsName               : Microsoft Windows Server 2022 Datacenter Azure Edition
OsOperatingSystemSKU : 407
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

------------------------------------------

Name                           Value
----                           -----
PSVersion                      5.1.20348.2400
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.2400
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant