From a67c254213c3458f91ac14e574aa697869a9a28a Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Tue, 3 Oct 2023 07:12:37 -0400 Subject: [PATCH] Update MSFT_EXOPlace.psm1 --- .../DSCResources/MSFT_EXOPlace/MSFT_EXOPlace.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOPlace/MSFT_EXOPlace.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOPlace/MSFT_EXOPlace.psm1 index c4aa28c746..93d282d5fd 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOPlace/MSFT_EXOPlace.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOPlace/MSFT_EXOPlace.psm1 @@ -368,8 +368,9 @@ function Set-TargetResource $PSBoundParameters.Remove('CertificatePassword') | Out-Null $PSBoundParameters.Remove('ManagedIdentity') | Out-Null - if ($null -eq $ParentId) + if ([System.String]::IsNullOrEmpty($ParentId) -and $null -ne $ParentType) { + Write-Verbose -Message 'ParentId is $null, removing ParentType.' $PSBoundParameters.Remove('ParentType') | Out-Null } Set-Place @PSBoundParameters