From 579f62ac4090c01f90e4ecc0fb1532006f7e3b7e Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Fri, 20 Oct 2023 11:43:04 -0400 Subject: [PATCH] Update MSFT_AADAttributeSet.psm1 --- .../DSCResources/MSFT_AADAttributeSet/MSFT_AADAttributeSet.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADAttributeSet/MSFT_AADAttributeSet.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADAttributeSet/MSFT_AADAttributeSet.psm1 index 3b8692d9e5..47173e12ac 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADAttributeSet/MSFT_AADAttributeSet.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADAttributeSet/MSFT_AADAttributeSet.psm1 @@ -185,7 +185,7 @@ function Set-TargetResource elseif ($Ensure -eq 'Absent' -and $currentInstance.Ensure -eq 'Present') { Write-Verbose -Message "Removing the Attribute Set with Id {$($currentInstance.Id)}" - Remove-MgBetaDirectoryAttributeSet -AuthenticationContextClassReferenceId $Id | Out-Null + Remove-MgBetaDirectoryAttributeSet -AttributeSetId $Id | Out-Null } }