microsoft / Microsoft365DSC

Manages, configures, extracts and monitors Microsoft 365 tenant configurations
https://aka.ms/M365DSC
MIT License
1.59k stars 500 forks source link

All reports are now blank - both New report from config and Delta reports #1878

Closed gitmanphilly closed 2 years ago

gitmanphilly commented 2 years ago

Details of the scenario you tried and the problem that is occurring

When printing a new report from config it comes back empty/blank, no info in excel. When getting delta report from two configs it comes back as 'no discrepancy' when known discrepancies exist.

Verbose logs showing the problem

No logs to show the issue but I will check - neither tasks fails with an error

Suggested solution to the issue

The data from the ps1 files is not being pulled into either report

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here

The operating system the target node is running

Version of the DSC module that was used ('dev' if using current dev branch)

berg95 commented 2 years ago

You are experiencing this on dev?

grabery commented 2 years ago

Having the same problem, using version 1.22.406.1 Empty reports :-(

IntuneAdmin commented 2 years ago

Have the same issue

andikrueger commented 2 years ago

Could you try to run the reports with the latest version?

IntuneAdmin commented 2 years ago

Could you try to run the reports with the latest version?

I did it with the new version

But only get an html file of 1KB with emplate Details MS365DSC

New-M365DSCReportFromConfiguration -Type 'HTML' -ConfigurationPath 'D:\Microsoft365\Exchange\M365TenantConfig.ps1' -OutputPath 'D:\Microsoft365\Exchange\M365Report.html'

pl-kyle commented 2 years ago

Same. Previous version was showing the resourceID value different on all workloads as well.
image

krugerd commented 2 years ago

I reported same issue with New-M365DSCReportFromConfiguration (see #1845) This now works for me in 1.22.420.1

AbdelmounaimZaidi commented 2 years ago

I'm working with the version 1.22.420.1 but the reports are still showing blank.

andikrueger commented 2 years ago

I did a quick test on this matter and was able to generate a proper report (New-M365DSCReportFromCoinfiguration) by using Microsoft365DSC Version 1.22.518.1. Could you update your module and retry?

This should be of help to make sure, you are having the latest resources available:

Update-Module Microsoft365DSC
Update-M365DSCDependencies
Uninstall-M365DSCOutdatedDependencies

Comparing two exports has still an issue. We are working on a solution.

jprotop commented 2 years ago

Hi All,

I have the most recent build of the Microsoft365DSC (see below) but always on a new configuration export, I'm getting a new ResourceID for the resources that are being selected for export, as a result comparing reports doesn't be helpful at all since all resources considered changed.

Any idea how this can be fixed ?

Thanks in advance !

ModuleBase Version


C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.22.518.1 1.22.518.1

andikrueger commented 2 years ago

Comparing has still an issue. We are working on a PR for this. This PR should be ready soon.

krugerd commented 2 years ago

Andi, I don't have an issue running New-M365DSCReportFromCoinfiguration either. However I wanted to point out that I (and perhaps others) always have a problem with: Uninstall-M365DSCOutdatedDependencies as it never can uninstall older versions of Microsoft.Graph.Authentication. Not sure if this is related to others having this problem or not but thought I'd point out...

example messages: Uninstalling Microsoft.Graph.Authentication version {1.9.5} PackageManagement\Uninstall-Package : The module 'Microsoft.Graph.Authentication' of version '1.9.5' in module base folder 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Authentication\1.9.5' cannot be uninstalled, because one or more other modules 'Microsoft.Graph.Applications,Microsoft.Graph.DeviceManagement,Microsoft.Graph.Device Management.Administration,Microsoft.Graph.DeviceManagement.Enrolment,Microsoft.Graph.Devices.CorporateManagement,Micros oft.Graph.Groups,Microsoft.Graph.Identity.DirectoryManagement,Microsoft.Graph.Identity.Governance,Microsoft.Graph.Ident ity.SignIns,Microsoft.Graph.Planner,Microsoft.Graph.Teams,Microsoft.Graph.Users' are dependent on this module. Uninstall the modules that depend on this module before uninstalling module 'Microsoft.Graph.Authentication'. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2194 char:21 + ... $null = PackageManagement\Uninstall-Package @PSBoundParameters + ~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Packag e], Exception + FullyQualifiedErrorId : UnableToUninstallAsOtherModulesNeedThisModule,Uninstall-Package,Microsoft.PowerShell.Pac kageManagement.Cmdlets.UninstallPackage Uninstalling Microsoft.Graph.Authentication version {1.9.3} PackageManagement\Uninstall-Package : The module 'Microsoft.Graph.Authentication' of version '1.9.3' in module base folder 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Authentication\1.9.3' cannot be uninstalled, because one or more other modules 'Microsoft.Graph.Applications,Microsoft.Graph.DeviceManagement,Microsoft.Graph.Device Management.Administration,Microsoft.Graph.DeviceManagement.Enrolment,Microsoft.Graph.Devices.CorporateManagement,Micros oft.Graph.Groups,Microsoft.Graph.Identity.DirectoryManagement,Microsoft.Graph.Identity.Governance,Microsoft.Graph.Ident ity.SignIns,Microsoft.Graph.Planner,Microsoft.Graph.Teams,Microsoft.Graph.Users' are dependent on this module. Uninstall the modules that depend on this module before uninstalling module 'Microsoft.Graph.Authentication'. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2194 char:21

Uninstalling Microsoft.Graph.Authentication version {1.9.2} PackageManagement\Uninstall-Package : The module 'Microsoft.Graph.Authentication' of version '1.9.2' in module base folder 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Authentication\1.9.2' cannot be uninstalled, because one or more other modules 'Microsoft.Graph.Applications,Microsoft.Graph.DeviceManagement,Microsoft.Graph.Device Management.Administration,Microsoft.Graph.DeviceManagement.Enrolment,Microsoft.Graph.Devices.CorporateManagement,Micros oft.Graph.Groups,Microsoft.Graph.Identity.DirectoryManagement,Microsoft.Graph.Identity.Governance,Microsoft.Graph.Ident ity.SignIns,Microsoft.Graph.Planner,Microsoft.Graph.Teams,Microsoft.Graph.Users' are dependent on this module. Uninstall the modules that depend on this module before uninstalling module 'Microsoft.Graph.Authentication'. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2194 char:21

ykuijs commented 2 years ago

@krugerd I am working on a PR that will fix the Uninstall issue. Will be included in the next release!

krugerd commented 2 years ago

Thanks @ykuijs !