From 2e8e0bf530b74d16c405aaa6227c76bbb5e6942d Mon Sep 17 00:00:00 2001 From: NikCharlebois Date: Thu, 14 Dec 2023 14:28:56 +0000 Subject: [PATCH] Updated Intune Integration Tests --- .../M365DSCIntegration.INTUNE.Tests.ps1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 b/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 index 5a6a6af83d..d2629a8b75 100644 --- a/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 +++ b/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 @@ -2681,5 +2681,12 @@ } # Compile and deploy configuration - Master -ConfigurationData $ConfigurationData -Credscredential $Credential - Start-DscConfiguration Master -Wait -Force -Verbose + try + { + Master -ConfigurationData $ConfigurationData -Credscredential $Credential + Start-DscConfiguration Master -Wait -Force -Verbose + } + catch + { + throw $_ + }