-
Notifications
You must be signed in to change notification settings - Fork 532
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
Microsoft365DSC\EXOCalendarProcessing: Unsupported values for properties in M365TenantConfig.ps1 prevent the creation of .mof file #5122
Comments
@MGPlex To me, it seems like you can not "remove" the calendar processing. It is an "Update only" resource, which only allows updating values of the configuration, but not "removing" the values. That's why you cannot use |
@FabienTschanz , It would seem that way, but these values are directly exported from a live-environment with export-M365DSCConfiguration. Now I am totally capable to edit M365TenantConfig.ps1, but for automation purposes I would rather see this file generated correctly. |
I understand the issue. From my lab environment with some test users, there is no Are there any errors logged in the Event Viewer --> Applications and Services Log --> M365DSC? |
I wouldn't know how to rebuild such an export file. I run the following command:
Excuse the weird code markup. It seems where users don't use calendarprocessing, ensure is set to absent. I also wouldn't know how I would influence Export-M365DSCConfiguration in order to correct this behavior. I haven't found the correct graph call that's made to export this info. Then I could test what the tenant gives back. As far as the logs go, I can't seem to find matching errors. |
I am nowhere near with my know-how regarding Exchange. Can you tell me how I disable the calendar processing? I tried with some things inside of Outlook and in the Exchange configuration, but to no avail... Also, the command you can run is |
I don't use this resource, but without even looking at the code I bet it's random connection failures and you get $nullReturn.Ensure = "Absent" It's just a matter of getting one of those users that appear with the calendar processing set Absent, run the cmdlet manually and check what's inside, most likely will look ok if the connection is fine. |
Try to export it again and see if there's any message in the screen complaining about "Calendar processing settings for $($Identity) does not exist.", it could be this. Line 238 in 3c57bf8
|
@ricmestre , you might be onto something here. When I run the exchange command directly the output doesn't even contain a Ensure value. This seems to be generated by M365DSC itself and could be part of some sort of error handling, albeit not effective. Our usage case for this export is that I use the .MOF file to read config data and export it to a (human readable) report for our clients. Frustratingly enough, the module did not throw these errors a month ago, but seem to have been created during the latest module update. |
The The message is not too much helpful, this is because |
@MGPlex Did you encounter the issue again? What's the status? |
Description of the issue
With a freshly generated M365TenantConfig.ps1 file it creates an error when trying to dot source it and make a .mof file.
Currently I am expriencing the following error:
Microsoft365DSC\EXOCalendarProcessing : At least one of the values 'Absent' is not supported or valid for property 'Ensure' on class 'EXOCa lendarProcessing'. Please specify only supported values: Present.
But I have seen this happen on other workloads as well.
Microsoft 365 DSC Version
1.24.904.1
Which workloads are affected
Exchange Online
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: