From 97e0ecf3a5dc46374942be7904d47f9bfd42b17f Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 17 Jul 2024 16:24:39 -0400 Subject: [PATCH 1/2] Update M365DSCTelemetryEngine.psm1 --- .../Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 index 6ac0e57bfb..a62b0907b7 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 @@ -81,6 +81,12 @@ function Add-M365DSCTelemetryEvent { $Script:M365DSCCountResourceInstance++ } + if ($null -eq $Script:M365DSCOperationStartTime -or $hostId -ne $Script:M365DSCExecutionContextId) + { + $Script:M365DSCOperationStartTime = [System.DateTime]::Now + } + + $Script:M365DSCOperationTimeTaken = [System.DateTime]::Now.Subtract($Script:M365DSCOperationStartTime) if ($hostId -ne $Script:M365DSCExecutionContextId) { @@ -88,6 +94,7 @@ function Add-M365DSCTelemetryEvent } $Data.Add('ResourceInstancesCount', $Script:M365DSCCountResourceInstance) $Data.Add('M365DSCExecutionContextId', $hostId) + $Data.Add('M365DSCOperationTotalTime', $Script:M365DSCOperationTimeTaken.TotalSeconds) } catch { From 5931768e8827ad7766d4c582438bb8c1bca97a4f Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 17 Jul 2024 16:29:41 -0400 Subject: [PATCH 2/2] Release 1.24.717.1 --- CHANGELOG.md | 8 +-- Modules/Microsoft365DSC/Microsoft365DSC.psd1 | 55 ++++++++++++-------- 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2987a1c5f..89d19d2a2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change log for Microsoft365DSC -# UNRELEASED +# 1.24.717.1 * EXOHostedOutboundSpamFilterPolicy * Changed the RecipientLimitInternalPerHour, RecipientLimitPerDay, and @@ -15,13 +15,13 @@ * Initial Release FIXES [#4050](https://github.com/microsoft/Microsoft365DSC/issues/4050) * IntuneWindowsUpdateForBusinessQualityUpdateProfileWindows10 - * Initial release. + * Initial release. FIXES [#2659](https://github.com/microsoft/Microsoft365DSC/issues/2659) * SPOSharingSettings * Improved performance by using -Filter on Get-PnPTenantSite calls. * M365DSCDRGUtil * Fixes an issue with nested and duplicate settings in the settings catalog - * Add support for converting Intune assignments directly from Graph. + * Add support for converting Intune assignments directly from Graph. FIXES [#4875](https://github.com/microsoft/Microsoft365DSC/issues/4875) * M365DSCResourceGenerator * Update Intune resource generation. @@ -31,6 +31,8 @@ FIXES [#4505](https://github.com/microsoft/Microsoft365DSC/issues/4505) * Fixes an issue where the comparison treats empty arrays as an empty string. FIXES [#4796](https://github.com/microsoft/Microsoft365DSC/issues/4796) +* Telemetry + * Added info about operation total execution time. # 1.24.710.3 diff --git a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 index 56af643474..ef6275d857 100644 --- a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 +++ b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2024-07-11 +# Generated on: 2024-07-17 @{ @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. - ModuleVersion = '1.24.710.3' + ModuleVersion = '1.24.717.1' # Supported PSEditions # CompatiblePSEditions = @() @@ -142,28 +142,37 @@ IconUri = 'https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/Dependencies/Images/Logo.png?raw=true' # ReleaseNotes of this module - ReleaseNotes = '* AADApplication - * Fixes an error where the duplicate error was being trapped, - which could cause extra instances to be created. -* AADGroup - * Fixes an error where the duplicate error was being trapped, - which could cause extra instances to be created. -* IntuneDeviceConfigurationPlatformScriptMacOS - * Fixes an issue where the assignments are missing if filtered by display name. + ReleaseNotes = '* EXOHostedOutboundSpamFilterPolicy + * Changed the RecipientLimitInternalPerHour, RecipientLimitPerDay, and + RecipientLimitExternalPerHour parameters to UInt32. +* EXOMessageClassification + * Fix issue while creating policy for first time + FIXES [#4877](https://github.com/microsoft/Microsoft365DSC/issues/4877) +* IntuneDeviceConfigurationEmailProfilePolicyWindows10 + * Fix export by fixing some typos and from where values are extracted + FIXES [#3960](https://github.com/microsoft/Microsoft365DSC/issues/3960) +* IntuneDiskEncryptionWindows10 + * Initial Release + FIXES [#4050](https://github.com/microsoft/Microsoft365DSC/issues/4050) +* IntuneWindowsUpdateForBusinessQualityUpdateProfileWindows10 + * Initial release. + FIXES [#2659](https://github.com/microsoft/Microsoft365DSC/issues/2659) +* SPOSharingSettings + * Improved performance by using -Filter on Get-PnPTenantSite calls. * M365DSCDRGUtil - * Fixes an issue where the return value was changed to a single object - instead of an array. - FIXES [#4844](https://github.com/microsoft/Microsoft365DSC/issues/4844) - * Fixes an issue where Graph models were not treated properly as a complex object. -* TELEMETRY - * Added instance count. - * Added roles scopes info. -* DEPENDENCIES - * Updated DSCParser to version 2.0.0.7. - * Updated Microsoft.Graph to version 2.20.0 - * Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.191 -* MISC - * Fixes issue with App Secret Authentication flow.' + * Fixes an issue with nested and duplicate settings in the settings catalog + * Add support for converting Intune assignments directly from Graph. + FIXES [#4875](https://github.com/microsoft/Microsoft365DSC/issues/4875) +* M365DSCResourceGenerator + * Update Intune resource generation. +* M365DSCReport + * Changes behaviour to not throw on empty configuration during report generation. + FIXES [#4559](https://github.com/microsoft/Microsoft365DSC/issues/4559) + FIXES [#4505](https://github.com/microsoft/Microsoft365DSC/issues/4505) + * Fixes an issue where the comparison treats empty arrays as an empty string. + FIXES [#4796](https://github.com/microsoft/Microsoft365DSC/issues/4796) +* Telemetry + * Added info about operation total execution time.' # Flag to indicate whether the module requires explicit user acceptance for install/update # RequireLicenseAcceptance = $false