Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

New-M365DSCREportFromConfiguration does not work

Open albandrod opened this issue 2 years ago • 8 comments

Description of the issue

I tried to run the command stated in a VM, but it seems to take ages to parse the information, I've leaved the VM running during all night but it doesn't pass trought the first point:

image

I have tried with JSON, HTML and Excel as well,m with the same result. I have also tried to update the module and dependencies to the last available GA update

Microsoft 365 DSC Version

lastest version

Which workloads are affected

other

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

albandrod avatar Oct 13 '23 09:10 albandrod

Same behaviour trying to make a delta comparison between 2 configuration files

albandrod avatar Oct 13 '23 10:10 albandrod

I can't reproduce the problem you're facing. Can you send the verbose logs, configuration and environment information, so there is more information to find a root cause?

jeffreycloudlife avatar Oct 16 '23 06:10 jeffreycloudlife

I am seeing the same issue, but mine is for comparing only default AAD exports of 2 different tenants. Source is 7MB Destination is 1.5MB Command: New-M365DSCDeltaReport -Source '....\Source\AAD\SourceAAD.ps1' -Destination '....\Destination\AAD\DestinationAAD.ps1' -OutputPath '.\AADDelta.html' -Verbose

Output (after 30 minutes): VERBOSE: Obtaining Delta between the source and destination configurations VERBOSE: Loading file '....\Source\AAD\SourceAAD.ps1'

M365DSC version:
1.23.1011.1

Environment Information: Environment info: OsName : Microsoft Windows 11 Enterprise OsOperatingSystemSKU : EnterpriseEdition OsArchitecture : 64-bit WindowsVersion : 2009 WindowsBuildLabEx : 22000.1.amd64fre.co_release.210604-1628 OsLanguage : en-US OsMuiLanguages : {en-US}

PSVersion Table: Name Value


PSVersion 5.1.22000.1335 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.22000.1335 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

Please note: I was able to create reports for Exchange, Intune, OneDrive, Planner, Power Platform, Security/Compliance, SharePoint, and Teams.

ccullum avatar Oct 16 '23 23:10 ccullum

Could you please run a quick test if this would work:

Convertto-DSCObject -Path <Path to the PS1 File>

andikrueger avatar Oct 18 '23 07:10 andikrueger

Hi, I got the same issue, seems to be a problem with "AADEntitlementManagementAccessPackageAssignmentPolicy" for me. I've been successful with the following:

  • AADGroup
  • AADEntitlementManagementAccessPackageCatalog
  • AADEntitlementManagementAccessPackageCatalogResource
  • AADEntitlementManagementAccessPackage
  • AADEntitlementManagementAccessPackageAssignmentPolicy
  • AADRoleDefinition
  • AADRoleEligibilityScheduleRequest
  • AADRoleSettings
  • AADAuthenticationMethodPolicyAuthenticator
  • AADAuthenticationStrengthPolicy
  • AADNamedLocationPolicy
  • AADConditionalAccessPolicy

I've tried doing "Convertto-DSCObject -Path" just stuck as screenshootbelow

image

Module version: image

Using PowerShell 5 Windows 11

schmarrap avatar Jan 18 '24 05:01 schmarrap

Update, did another new export of AADEntitlementManagementAccessPackageAssignmentPolicy and now it worked :) Might have been a version change between my orginal file and the new module.

schmarrap avatar Jan 18 '24 06:01 schmarrap

@andikrueger I've added the following to my config file and think this might be the reason why it hangs:

image

The export is not exporting id for the group which is a bit of concern for access packages.

CC: @schmarrap

schmarrap avatar Jan 18 '24 22:01 schmarrap

Could you run a test with the next release. This will contain some improvements in this area.

andikrueger avatar Feb 26 '24 15:02 andikrueger

@andikrueger hello,
I have the same issue as mentioned above: parsing process for cmdlet New-M365DSCReportFromConfiguration freezes without any action. But it can be seen that Pwsh process consumes resources. I've launched Convertto-DSCObject -Path and it freezes here: pic Any suggestion?

Alex1under avatar Mar 06 '24 13:03 Alex1under