Skip to content

Commit

Permalink
Merge branch 'microsoft:Dev' into Convert-M365DscHashtableToString-fo…
Browse files Browse the repository at this point in the history
…rmatting-microsoft#2980
  • Loading branch information
menswearUK authored Mar 22, 2023
2 parents fbf53f8 + 0f22b64 commit 545ef6b
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1187,12 +1187,20 @@ function Test-TargetResource
Write-Verbose -Message "Target Values: $(Convert-M365DscHashtableToString -Hashtable $PSBoundParameters)"

$ValuesToCheck = $PSBoundParameters
$ValuesToCheck.Remove('Credential') | Out-Null
$ValuesToCheck.Remove('AdvancedSettings') | Out-Null
$ValuesToCheck.Remove('LocaleSettings') | Out-Null
$ValuesToCheck.Remove('Disabled') | Out-Null
$ValuesToCheck.Remove('EncryptionAipTemplateScopes') | Out-Null

# Remove authentication parameters
$ValuesToCheck.Remove('ApplicationId') | Out-Null
$ValuesToCheck.Remove('TenantId') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null
$ValuesToCheck.Remove('ApplicationSecret') | Out-Null

if ($null -ne $AdvancedSettings -and $null -ne $CurrentValues.AdvancedSettings)
{
Write-Verbose -Message 'Testing AdvancedSettings'
Expand Down

0 comments on commit 545ef6b

Please sign in to comment.