Open icedkopi4me opened 11 months ago
Could you try to call into Add-M365DSCEvent
manually and check, if there are any exceptions thrown?
Please use the Verbose switch for the function to get further information.
I can confirm this issue. Using v1.24.515.2. I ran the command as suggested by @andikrueger and nothing shows up in the event viewer. I will also add that there were no exceptions thrown
Could you please share details about your environment? Thanks!
Actually, I just rebooted my machine and now see the event logs I added using the cmdlet. I am running Windows 10 Enterprise in a virtual machine on KVM. I see the test events that I added but haven't yet seen the configuration drift as expected. Since I just rebooted, it might take 15-30 minutes for DSC to query the changes
Also, I am running this against a GCC G5 tenant if that is helpful. My configuration is a simple test with a single AADAdministrativeUnit in order to perform a POC of the functionality
Running the command "Get-DscConfiguration" returns this: Get-DscConfiguration : The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The Verbose key is not a valid property in the corresponding DSC resource schema file. The results from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the same as the properties in the corresponding DSC resource schema file. At line:1 char:1
+ CategoryInfo : InvalidResult: (MSFT_DSCLocalConfigurationManager:root/Microsoft/...gurationManager) [Ge
t-DscConfiguration], CimException
+ FullyQualifiedErrorId : GetOperationResultInvalidResultFormat,Get-DscConfiguration
That looks like Verbose parameter needs to be removed from some of the resources you have in your blueprint, this sometimes causes problems so could you please share a redacted blueprint in order to troubleshoot it?
If we can identify which resource is causing this then it would be just a matter of removing Verbose from Get/Set/Test just like it was already done for other resource were it caused the same problem.
Everything is working as expected now. Probably just user error :) Thanks for your support!
Hi, I've completed the steps for deploying the configuration and I would like to monitor for drifts. However, following the guide, I was unable to find M365DSC log journal under the Event Viewer. Please kindly advise. Thanks!