EXOHostedContentFilterRule: Cannot update resource
ricmestre opened this issue · 0 comments
ricmestre commented
Description of the issue
After creating the policy it cannot be updated, this is because the identity on set is being assigned to the same identity of the EXOHostedContentFilterPolicy
which is not correct, I'll raise a PR to fix this.
Microsoft 365 DSC Version
1.24.626.1
Which workloads are affected
Exchange Online
The DSC configuration
EXOHostedContentFilterRule "EXOHostedContentFilterRule-EXOHostedContentFilterRule_1"
{
ApplicationId = $EXOApplicationId;
CertificateThumbprint = $EXOCertThumbprint;
Comments = "Applies to all users, except when member of HR group";
Enabled = $True;
Ensure = "Present";
ExceptIfSentToMemberOf = @("LegalTeam@$OrganizationName");
HostedContentFilterPolicy = "EXOHostedContentFilterPolicy_1";
Identity = "EXOHostedContentFilterRule_1";
RecipientDomainIs = @("contoso.com");
TenantId = $OrganizationName;
}
Verbose logs showing the problem
Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'EXOHostedContentFilterPolicy_1' couldn't be found on 'REDACTED.PROD.OUTLOOK.COM'.
Environment Information + PowerShell Version
Win11/PS5.1