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-M365DSCReportFromConfiguration: parsed content was null #4559

Closed
febenitezc opened this issue Apr 15, 2024 · 8 comments · Fixed by #4867 or #4902
Closed

New-M365DSCReportFromConfiguration: parsed content was null #4559

febenitezc opened this issue Apr 15, 2024 · 8 comments · Fixed by #4867 or #4902

Comments

@febenitezc
Copy link

Description of the issue

Unable to run following script:

PowerShell Error
How to Install - Microsoft365DSC - Your Cloud Configuration

Validate that the customer runs PowerShell version 5.1 and 7.3+

Install-Module Microsoft365DSC -Force

Update-M365DSCDependencies

Get-Module Microsoft365DSC -ListAvailable | select ModuleBase, Version

Update-Module Microsoft365DSC

Update-M365DSCDependencies

Export-M365DSCConfiguration -LaunchWebUI

#make sure to select all checkboxes and option from the GUI

#Planner, Power Platform, can be excluded from the selection.

Microsoft 365 DSC Version

PROD

Which workloads are affected

Azure Active Directory (Entra ID), Exchange Online, Intune, Office 365 Admin, Security & Compliance Center, SharePoint Online

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

@febenitezc
Copy link
Author

Can someone please point me on the right direction to resolve issue above? "parsed content was null"

@andikrueger
Copy link
Collaborator

Can you confirm that your configuration.ps1 holds a configuration? In most cases this exception is due to an empty configuration or file.

@febenitezc
Copy link
Author

Hi Andi,

Thanks for taking the time to answer my question. What do you mean by holding a configuration? This is the script that is available on github and makes reference to Microsoft365DSC.

Can you please elaborate on your answer? Please, check documentation on the script from the link, and let me know if I missed anything here.

Cheers

@andikrueger
Copy link
Collaborator

Please open the file at c:\temp\securitychecks\config.ps1 and check if there are any resources in Node localhost {}

@febenitezc
Copy link
Author

What should be the correct configuration under that script? All the script that I'm running are from Github.

Can you please provide an example that what is supposed to be under that file? Node localhost {}

@andikrueger
Copy link
Collaborator

Depending on the selected resources the file should contain something like the first Example on this page here:

https://microsoft.github.io/Microsoft365DSC/resources/azure-ad/AADApplication/

@febenitezc
Copy link
Author

Thanks Andi,

I was under the impression the configuration file is already filled out with that information. Do we have to manually build that file?

I read from another blog with similar error that we must run the command Import-DscResource -ModuleName Microsoft365DSC

Is that correct?

@Kierow
Copy link

Kierow commented Apr 17, 2024

Hello,

It might be related to this issue:
#4505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants