|Specifies the resource is a single instance, the value must be 'Yes'.
|The Identity parameter specifies the report submission rule that you want to modify.
|The Comments parameter specifies informative comments for the rule, such as what the rule is used for or how it has changed over time.
|The SentTo parameter specifies the email address of the reporting mailbox in Exchange Online where user reported messages are sent.
|Specifies if this report submission rule should exist.
|Credentials of the Exchange Global Admin
|Id of the Azure Active Directory application to authenticate with.
|Id of the Azure Active Directory tenant used for authentication.
|Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
|Username can be made up to anything but password will be used for CertificatePassword
|Path to certificate used in service principal usually a PFX file.
|Managed ID being used for authentication.
Create or modify an EXOReportSubmissionRule in your cloud-based organization.
To authenticate with Microsoft Exchange, this resource required the following permissions:
- Transport Hygiene, Security Admin, View-Only Configuration, Security Reader
- Organization Management
This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline.
[Parameter(Mandatory = $true)]
Import-DscResource -ModuleName Microsoft365DSC
IsSingleInstance = 'Yes'
Identity = "DefaultReportSubmissionRule"
Comments = "This is my default rule"
SentTo = "firstname.lastname@example.org"
Ensure = "Present"
Credential = $Credscredential