Skip to content

Commit

Permalink
Several modules have Managedidentity instead of ManagedIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
andikrueger committed Oct 28, 2022
1 parent d3e1ad0 commit 101f4f1
Show file tree
Hide file tree
Showing 58 changed files with 104 additions and 98 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log for Microsoft365DSC

# Unreleased

* MISC
* Fixes and issue with ManagedIdentity Parameter not being not removed correctly in a parameterset.
* FIXES [#2464](https://github.com/microsoft/Microsoft365DSC/issues/2464)

# 1.22.1026.2

* MISC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function Set-TargetResource
$PSBoundParameters.Remove('TenantId') | Out-Null
$PSBoundParameters.Remove('CertificateThumbprint') | Out-Null
$PSBoundParameters.Remove('CertificatePassword') | Out-Null
$PSBoundParameters.Remove('Managedidentity') | Out-Null
$PSBoundParameters.Remove('ManagedIdentity') | Out-Null
$PSBoundParameters.Remove('CertificatePath') | Out-Null
$PSBoundParameters.Remove('Credential') | Out-Null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function Set-TargetResource
$CreationParams.Remove('CertificateThumbprint') | Out-Null
$CreationParams.Remove('CertificatePath') | Out-Null
$CreationParams.Remove('CertificatePassword') | Out-Null
$CreationParams.Remove('Managedidentity') | Out-Null
$CreationParams.Remove('ManagedIdentity') | Out-Null

# New-AntiPhishRule has the Enabled parameter, Set-AntiPhishRule does not.
# There doesn't appear to be any way to change the Enabled state of a rule once created.
Expand All @@ -344,7 +344,7 @@ function Set-TargetResource
$UpdateParams.Remove('CertificateThumbprint') | Out-Null
$UpdateParams.Remove('CertificatePath') | Out-Null
$UpdateParams.Remove('CertificatePassword') | Out-Null
$UpdateParams.Remove('Managedidentity') | Out-Null
$UpdateParams.Remove('ManagedIdentity') | Out-Null

# Check to see if the specified policy already has the rule assigned;
$existingRule = Get-AntiPhishRule | Where-Object -FilterScript { $_.AntiPhishPolicy -eq $AntiPhishPolicy }
Expand Down Expand Up @@ -474,7 +474,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

if ($null -eq $PSBoundParameters.Enabled)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function Set-TargetResource
$AtpPolicyParams.Remove('CertificateThumbprint') | Out-Null
$AtpPolicyParams.Remove('CertificatePath') | Out-Null
$AtpPolicyParams.Remove('CertificatePassword') | Out-Null
$AtpPolicyParams.Remove('Managedidentity') | Out-Null
$AtpPolicyParams.Remove('ManagedIdentity') | Out-Null
Write-Verbose -Message "Setting AtpPolicyForO365 $Identity with values: $(Convert-M365DscHashtableToString -Hashtable $AtpPolicyParams)"

Set-AtpPolicyForO365 @AtpPolicyParams
Expand Down Expand Up @@ -330,7 +330,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Set-TargetResource
$AvailabilityAddressSpaceParams.Remove('CertificateThumbprint') | Out-Null
$AvailabilityAddressSpaceParams.Remove('CertificatePath') | Out-Null
$AvailabilityAddressSpaceParams.Remove('CertificatePassword') | Out-Null
$AvailabilityAddressSpaceParams.Remove('Managedidentity') | Out-Null
$AvailabilityAddressSpaceParams.Remove('ManagedIdentity') | Out-Null

if (('Present' -eq $Ensure ) -and ($null -eq $AvailabilityAddressSpace))
{
Expand Down Expand Up @@ -400,7 +400,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$DesiredValues = $PSBoundParameters
if ($OrgWideAccount.Contains('@'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function Set-TargetResource
$CASMailboxPlanParams.Remove('CertificateThumbprint') | Out-Null
$CASMailboxPlanParams.Remove('CertificatePath') | Out-Null
$CASMailboxPlanParams.Remove('CertificatePassword') | Out-Null
$CASMailboxPlanParams.Remove('Managedidentity') | Out-Null
$CASMailboxPlanParams.Remove('ManagedIdentity') | Out-Null

$CASMailboxPlans = Get-CASMailboxPlan
$CASMailboxPlan = $CASMailboxPlans | Where-Object -FilterScript { $_.Identity -eq $Identity }
Expand Down Expand Up @@ -330,7 +330,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ function Set-TargetResource
$CASMailboxParams.Remove('CertificateThumbprint') | Out-Null
$CASMailboxParams.Remove('CertificatePath') | Out-Null
$CASMailboxParams.Remove('CertificatePassword') | Out-Null
$CASMailboxParams.Remove('Managedidentity') | Out-Null
$CASMailboxParams.Remove('ManagedIdentity') | Out-Null

# CASE: Mailbox doesn't exist but should;
if ($Ensure -eq 'Present' -and $currentMailbox.Ensure -eq 'Absent')
Expand Down Expand Up @@ -694,7 +694,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function Set-TargetResource
$ClientAccessRuleParams.Remove('CertificateThumbprint') | Out-Null
$ClientAccessRuleParams.Remove('CertificatePath') | Out-Null
$ClientAccessRuleParams.Remove('CertificatePassword') | Out-Null
$ClientAccessRuleParams.Remove('Managedidentity') | Out-Null
$ClientAccessRuleParams.Remove('ManagedIdentity') | Out-Null
if ($ClientAccessRuleParams.RuleScope)
{
$ClientAccessRuleParams += @{
Expand Down Expand Up @@ -492,7 +492,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function Set-TargetResource
$DataClassificationParams.Remove('CertificateThumbprint') | Out-Null
$DataClassificationParams.Remove('CertificatePath') | Out-Null
$DataClassificationParams.Remove('CertificatePassword') | Out-Null
$DataClassificationParams.Remove('Managedidentity') | Out-Null
$DataClassificationParams.Remove('ManagedIdentity') | Out-Null


if (('Present' -eq $Ensure ) -and ($null -eq $DataClassification))
Expand Down Expand Up @@ -377,7 +377,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function Set-TargetResource
$DataEncryptionPolicyParams.Remove('CertificateThumbprint') | Out-Null
$DataEncryptionPolicyParams.Remove('CertificatePath') | Out-Null
$DataEncryptionPolicyParams.Remove('CertificatePassword') | Out-Null
$DataEncryptionPolicyParams.Remove('Managedidentity') | Out-Null
$DataEncryptionPolicyParams.Remove('ManagedIdentity') | Out-Null

if (('Present' -eq $Ensure ) -and ($null -eq $DataEncryptionPolicy))
{
Expand Down Expand Up @@ -365,7 +365,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function Set-TargetResource
$currentParameters.Remove('CertificateThumbprint') | Out-Null
$currentParameters.Remove('CertificatePath') | Out-Null
$currentParameters.Remove('CertificatePassword') | Out-Null
$currentParameters.Remove('Managedidentity') | Out-Null
$currentParameters.Remove('ManagedIdentity') | Out-Null

# Distribution group doesn't exist but it should
if ($Ensure -eq 'Present' -and $currentDistributionGroup.Ensure -eq 'Absent')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function Set-TargetResource
$DkimSigningConfigParams.Remove('CertificateThumbprint') | Out-Null
$DkimSigningConfigParams.Remove('CertificatePath') | Out-Null
$DkimSigningConfigParams.Remove('CertificatePassword') | Out-Null
$DkimSigningConfigParams.Remove('Managedidentity') | Out-Null
$DkimSigningConfigParams.Remove('ManagedIdentity') | Out-Null
$DkimSigningConfigParams += @{
DomainName = $PSBoundParameters.Identity
}
Expand Down Expand Up @@ -350,7 +350,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Set-TargetResource
$HostedConnectionFilterPolicyParams.Remove('CertificateThumbprint') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('CertificatePath') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('CertificatePassword') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('Managedidentity') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('ManagedIdentity') | Out-Null

if ($HostedConnectionFilterPolicyParams.RuleScope)
{
Expand Down Expand Up @@ -394,7 +394,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ function Set-TargetResource
$HostedContentFilterPolicyParams.Remove('CertificateThumbprint') | Out-Null
$HostedContentFilterPolicyParams.Remove('CertificatePath') | Out-Null
$HostedContentFilterPolicyParams.Remove('CertificatePassword') | Out-Null
$HostedContentFilterPolicyParams.Remove('Managedidentity') | Out-Null
$HostedContentFilterPolicyParams.Remove('ManagedIdentity') | Out-Null

if ($HostedContentFilterPolicyParams.Contains('EndUserSpamNotificationCustomFromAddress'))
{
Expand Down Expand Up @@ -1091,7 +1091,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

if ($null -ne $ValuesToCheck.AllowedSenders -and $ValuesToCheck.AllowedSenders.Length -eq 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function Set-TargetResource
$CreationParams.Remove('CertificateThumbprint') | Out-Null
$CreationParams.Remove('CertificatePath') | Out-Null
$CreationParams.Remove('CertificatePassword') | Out-Null
$CreationParams.Remove('Managedidentity') | Out-Null
$CreationParams.Remove('ManagedIdentity') | Out-Null
if ($Enabled -and ('Disabled' -eq $CurrentValues.State))
{
# New-HostedContentFilterRule has the Enabled parameter, Set-HostedContentFilterRule does not.
Expand All @@ -336,7 +336,7 @@ function Set-TargetResource
$UpdateParams.Remove('CertificateThumbprint') | Out-Null
$UpdateParams.Remove('CertificatePath') | Out-Null
$UpdateParams.Remove('CertificatePassword') | Out-Null
$UpdateParams.Remove('Managedidentity') | Out-Null
$UpdateParams.Remove('ManagedIdentity') | Out-Null
Write-Verbose -Message "Updating HostedContentFilterRule {$Identity}"
Set-HostedContentFilterRule @UpdateParams
}
Expand Down Expand Up @@ -456,7 +456,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function Set-TargetResource
$HostedOutboundSpamFilterPolicyParams.Remove('CertificateThumbprint') | Out-Null
$HostedOutboundSpamFilterPolicyParams.Remove('CertificatePath') | Out-Null
$HostedOutboundSpamFilterPolicyParams.Remove('CertificatePassword') | Out-Null
$HostedOutboundSpamFilterPolicyParams.Remove('Managedidentity') | Out-Null
$HostedOutboundSpamFilterPolicyParams.Remove('ManagedIdentity') | Out-Null

Write-Verbose -Message "Setting HostedOutboundSpamFilterPolicy $Identity with values: $(Convert-M365DscHashtableToString -Hashtable $HostedOutboundSpamFilterPolicyParams)"
Set-HostedOutboundSpamFilterPolicy @HostedOutboundSpamFilterPolicyParams
Expand Down Expand Up @@ -399,7 +399,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function Set-TargetResource
$CreationParams.Remove('CertificateThumbprint') | Out-Null
$CreationParams.Remove('CertificatePath') | Out-Null
$CreationParams.Remove('CertificatePassword') | Out-Null
$CreationParams.Remove('Managedidentity') | Out-Null
$CreationParams.Remove('ManagedIdentity') | Out-Null
if ($Enabled -and ('Disabled' -eq $CurrentValues.State))
{
# New-HostedOutboundSpamFilterRule has the Enabled parameter, Set-HostedOutboundSpamFilterRule does not.
Expand All @@ -336,7 +336,7 @@ function Set-TargetResource
$UpdateParams.Remove('CertificateThumbprint') | Out-Null
$UpdateParams.Remove('CertificatePath') | Out-Null
$UpdateParams.Remove('CertificatePassword') | Out-Null
$UpdateParams.Remove('Managedidentity') | Out-Null
$UpdateParams.Remove('ManagedIdentity') | Out-Null
Write-Verbose -Message "Updating HostedOutboundSpamFilterRule {$Identity}"
Set-HostedOutboundSpamFilterRule @UpdateParams
}
Expand Down Expand Up @@ -457,7 +457,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Loading

0 comments on commit 101f4f1

Please sign in to comment.