-
Notifications
You must be signed in to change notification settings - Fork 49
xExchMailboxDatabase returns error message during first run. #488
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
Comments
Will running |
Thanks! I didn't think of trying that, so I just build a new Server 2022 manually and installed Exchange 2019 CU. PS C:\Deploy> C:\Deploy\Test.ps1 I ran the test immediately (Maybe 15-20 seconds after install DSC finished). So it seems there needs to be a waiting period of maybe 60-120 seconds, after Exchange installation finishes, before the xMailboxDatabase check runs. Maybe the Get-MailboxDatabase cmdlet fails when the error occurs (because Exchange is still getting settled in) and this isn't handled (enough) in the DSC module? |
Here's the verbose logging from the failure: VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'. VERBOSE: Operation 'Invoke CimMethod' complete. |
This is a successful test maybe 30-60 seconds later again, where the issue is now gone. VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'. |
I also get this error regularly. It's probably only happens on first DSC execution. Can you please test following: Delete Folder c:\windows\temp\DSCExchangeModule Apply your DSC configuration. |
Great find! The fix worked with my first test ;-) |
Cool :-) |
Multiple tests show success so far, so it looks like it's working. ;-) Five successful runs and two failed control runs, without the change. |
Perfect. I will create a pull request next week. |
Problem description
I'm trying to deploy Exchange 2019 CU12 on Server 2022 for dev environments.
Deployment is through Azure DevOps/BICEP/Azure Automation on Azure VMs.
The error comes every time the pipeline runs, deploying from scratch.
When looking at the DSC State in Azure Automation, the state becomes compliant at the second run, so almost immediately after pipeline has completed.
I can't force the error again, by testing manually, so I can't trigger the error once the initial deployment has succeeded.
Log info is what I get returned from AZ CLI/BICEP through the pipeline.
Everything works, but for some reason the DSC fails the initial runs but succeeds at second run.
Verbose logs
DSC configuration
Suggested solution
N/A
Operating system the target node is running
Exchange Server edition and version the target node is running
PowerShell version and build the target node is running
xExchange version
The text was updated successfully, but these errors were encountered: