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

MSFT_EXOSafeAttachmentPolicy: ActionOnError Deprecated #3579

Closed
coolriku opened this issue Aug 16, 2023 · 0 comments · Fixed by #3584
Closed

MSFT_EXOSafeAttachmentPolicy: ActionOnError Deprecated #3579

coolriku opened this issue Aug 16, 2023 · 0 comments · Fixed by #3584
Labels

Comments

@coolriku
Copy link
Contributor

Description of the issue

When you try to apply a SafeAttachmentPolicy with Redirect set to true it fails because the "ActionOnError" parameter is Deprecated.

If you forcefully add this parameter to the *.mof file then you get the following error:
{ A parameter cannot be found that matches parameter name 'ActionOnError'. } \ at Set-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.23.809.1\DscResources\MSFT_EXOSafeAttachmentPolicy\MSFT_EXOSafeAttachmentPolicy.psm1: line 305
See Reference:

Solution:
Remove ActionOnError logic from module

Microsoft 365 DSC Version

1.23.809.1

Which workloads are affected

Exchange Online

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

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