Skip to content

Commit

Permalink
Merge pull request #3204 from serial666/Dev
Browse files Browse the repository at this point in the history
TeamsTeam: Finish the fix for issue #3183
  • Loading branch information
NikCharlebois authored Apr 24, 2023
2 parents 98a177d + 1b4670e commit d5e9fe8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function Get-TargetResource
Ensure = 'Present'
}

if ($ConnectionMode -eq 'ServicePrincipal')
if ($ConnectionMode.StartsWith('ServicePrincipal'))
{
$result.Add('ApplicationId', $ApplicationId)
$result.Add('TenantId', $TenantId)
Expand Down Expand Up @@ -408,7 +408,7 @@ function Set-TargetResource
$CurrentParameters.Owner = [array](($Owner[0]).ToString())
}
Write-Verbose -Message "Connection mode: $ConnectionMode"
if ($ConnectionMode -eq 'ServicePrincipal')
if ($ConnectionMode.StartsWith('ServicePrincipal'))
{
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftGraph' `
-InboundParameters $PSBoundParameters
Expand Down

0 comments on commit d5e9fe8

Please sign in to comment.