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

New-M365DSCDeltaReport issues when using as an application #1548

Closed
seiken27 opened this issue Nov 11, 2021 · 1 comment · Fixed by #1660 or #1664
Closed

New-M365DSCDeltaReport issues when using as an application #1548

seiken27 opened this issue Nov 11, 2021 · 1 comment · Fixed by #1660 or #1664
Labels
Bug Something isn't working Core Engine

Comments

@seiken27
Copy link

seiken27 commented Nov 11, 2021

Hey everyone

I have started moving from using credentials to application auth via certificate, I transcripted an export and comparison where it uses App Auth, the comparison fails and reports on all resources failing.

Exports work fine, it's just the delta comparison fails. Exports are done using the same version of the module as well.

PS>TerminatingError(Compare-Object): "Cannot bind argument to parameter 'ReferenceObject' because it is null."
Error "ResourceName"

This does not happen and works fine with Teams/SecComp since User Credential is required there, but for AAD/EXO/SPO/Intune it fails.

Anyone know what could be wrong? Any assistance would be great.

@saturninlepoulet
Copy link

saturninlepoulet commented Nov 11, 2021

Hello,

I was about to submit an issue for this. I got same issue. Comparing an export (with credential) to another (with certificate) fails because some paramaters are not present

I used module 1.21.1103.1 and patched it by adding in M365DSCReport.psm1 this line :

if ($propertyName -match '^(NonNodeData|ApplicationId|CertificateThumbprint|TenantId)$') { continue }

right after

foreach ($propertyName in $sourceResource.Keys)

and after

foreach ($propertyName in $destinationResource.Keys)

in Compare-M365DSCConfigurations function

NikCharlebois added a commit to NikCharlebois/Microsoft365DSC that referenced this issue Dec 31, 2021
@NikCharlebois NikCharlebois added Bug Something isn't working Core Engine labels Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core Engine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants