From c635e30abdee5e23f0feafe6fb46d39645025987 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Fri, 21 Apr 2023 14:52:00 -0400 Subject: [PATCH] FIXES #3183 --- CHANGELOG.md | 3 +++ .../DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac4b3d7f43..9f52f7cc6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ * SCSensitivityLabel * Remove property Disabled from schema FIXES [#3193](https://github.com/microsoft/Microsoft365DSC/issues/3193) +* TeamsTeam + * Fixes an error when trying to extract teams using a Service Principal. + FIXES [#3183](https://github.com/microsoft/Microsoft365DSC/issues/3183) * DEPENDENCIES * Updated DSCParser dependencies to version 1.3.0.7. * Updated Microsoft.PowerApps.Administration.PowerShell tp version 2.0.160. diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1 index 04aaff3761..a1e842c50f 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1 @@ -674,7 +674,7 @@ function Export-TargetResource try { - if ($ConnectionMode -eq 'ServicePrincipal') + if ($ConnectionMode.StartsWith('ServicePrincipal')) { $organization = Get-M365DSCTenantDomain -ApplicationId $ApplicationId -TenantId $TenantId -CertificateThumbprint $CertificateThumbprint }