From cb2d796610ed60a2eacdc9ff3005dbe9a83e8512 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 17 Apr 2024 16:31:05 -0400 Subject: [PATCH 1/3] Release 1.24.417.1 --- CHANGELOG.md | 2 +- .../MSFT_AADRoleEligibilityScheduleRequest.psm1 | 3 ++- .../DSCResources/MSFT_AADRoleSetting/MSFT_AADRoleSetting.psm1 | 2 +- Modules/Microsoft365DSC/Microsoft365DSC.psd1 | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e297922b..1d7b0071b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change log for Microsoft365DSC -# UNRELEASED +# 1.24.41.1 * AADAdministrativeUnit, AADApplication, AADEntitlementManagementConnectedOrganization, AADGroup, AADUser diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleEligibilityScheduleRequest/MSFT_AADRoleEligibilityScheduleRequest.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleEligibilityScheduleRequest/MSFT_AADRoleEligibilityScheduleRequest.psm1 index b261d744d5..0945cf7b7d 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleEligibilityScheduleRequest/MSFT_AADRoleEligibilityScheduleRequest.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleEligibilityScheduleRequest/MSFT_AADRoleEligibilityScheduleRequest.psm1 @@ -879,7 +879,8 @@ function Export-TargetResource } catch { - if ($_.ErrorDetails.Message -like "*The tenant needs an AAD Premium*") + if ($_.ErrorDetails.Message -like "*The tenant needs an AAD Premium*" -or ` + $_.ErrorDetails.MEssage -like "*[AadPremiumLicenseRequired]*") { Write-Host "`r`n $($Global:M365DSCEmojiYellowCircle) Tenant does not meet license requirement to extract this component." } diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleSetting/MSFT_AADRoleSetting.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleSetting/MSFT_AADRoleSetting.psm1 index fb4fd4a2e7..a67c0af2c6 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleSetting/MSFT_AADRoleSetting.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_AADRoleSetting/MSFT_AADRoleSetting.psm1 @@ -1450,7 +1450,7 @@ function Export-TargetResource } catch { - if ($_ -match 'The tenant needs an AAD Premium 2 license') + if ($_.ErrorDetails.Message -like "*The tenant needs to have Microsoft Entra*") { Write-Host "`r`n $($Global:M365DSCEmojiYellowCircle) AAD Premium License is required to get the role." return '' diff --git a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 index 5dd59d4411..6fe9bfb759 100644 --- a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 +++ b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2024-04-03 +# Generated on: 2024-04-17 @{ @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. - ModuleVersion = '1.24.403.1' + ModuleVersion = '1.24.417.1' # Supported PSEditions # CompatiblePSEditions = @() From 96062ab92c6ee208d4b0282ed14072a9eb5a0aaa Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 17 Apr 2024 19:55:29 -0400 Subject: [PATCH 2/3] Update MSFT_EXOAuthenticationPolicyAssignment.psm1 --- .../MSFT_EXOAuthenticationPolicyAssignment.psm1 | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOAuthenticationPolicyAssignment/MSFT_EXOAuthenticationPolicyAssignment.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOAuthenticationPolicyAssignment/MSFT_EXOAuthenticationPolicyAssignment.psm1 index 47637d5b3c..62b5c929cd 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOAuthenticationPolicyAssignment/MSFT_EXOAuthenticationPolicyAssignment.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOAuthenticationPolicyAssignment/MSFT_EXOAuthenticationPolicyAssignment.psm1 @@ -47,17 +47,8 @@ function Get-TargetResource ) Write-Verbose -Message "Getting Authentication Policy configuration for $Identity" - if ($Global:CurrentModeIsExport) - { - $ConnectionMode = New-M365DSCConnection -Workload 'ExchangeOnline' ` - -InboundParameters $PSBoundParameters ` - -SkipModuleReload $true - } - else - { - $ConnectionMode = New-M365DSCConnection -Workload 'ExchangeOnline' ` - -InboundParameters $PSBoundParameters - } + $ConnectionMode = New-M365DSCConnection -Workload 'ExchangeOnline' ` + -InboundParameters $PSBoundParameters #Ensure the proper dependencies are installed in the current environment. Confirm-M365DSCDependencies @@ -305,8 +296,7 @@ function Export-TargetResource $ManagedIdentity ) $ConnectionMode = New-M365DSCConnection -Workload 'ExchangeOnline' ` - -InboundParameters $PSBoundParameters ` - -SkipModuleReload $true + -InboundParameters $PSBoundParameters #Ensure the proper dependencies are installed in the current environment. Confirm-M365DSCDependencies From 9f2a34ffc2103011248689b0d54162ea4673c2d1 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 17 Apr 2024 19:56:27 -0400 Subject: [PATCH 3/3] Update Microsoft365DSC.psd1 --- Modules/Microsoft365DSC/Microsoft365DSC.psd1 | 111 +++++-------------- 1 file changed, 30 insertions(+), 81 deletions(-) diff --git a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 index 6fe9bfb759..4c1bdbb63e 100644 --- a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 +++ b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 @@ -143,92 +143,41 @@ # ReleaseNotes of this module ReleaseNotes = '* AADAdministrativeUnit - * Fix issue with deploying/creating a new AU with members and/or adding members to an existing AU - FIXES [#4404](https://github.com/microsoft/Microsoft365DSC/issues/4404) - * Updated examples to include setting Visibility and ScopedRoleMembers - * Fix issue with Set-TargetResource was failing to apply when Verbose is set - FIXES [#4497](https://github.com/microsoft/Microsoft365DSC/issues/4497) - * All resources - * Fix issue where Ensure cannot be left as default Present - * AADAdministrativeUnit - * Fix issue with omitted Ensure and/or Id - FIXES [#4437](https://github.com/microsoft/Microsoft365DSC/issues/4437) + * Fixed an issue when assigning a directory role which is not yet enabled. + * Fixed a potential issue if the total directory roles increases in future. * AADConditionalAccessPolicy - * Fixed schema file - * EXOCalendarProcessing - * Fixed schema file - * EXOGroupSettings - * Fixed schema file - * EXOMailTips - * [BREAKING CHANGE] Replaced the Organization parameter with IsSingleInstance - FIXES [#4117](https://github.com/microsoft/Microsoft365DSC/issues/4117) - * EXOMessageClassification - * Fixed schema file - * EXOOMEConfiguration - * Fixed schema file - * EXOTransportRule - * [BREAKING CHANGE] Change data type of Priority from String to Int - FIXES [[#4136](https://github.com/microsoft/Microsoft365DSC/issues/4136)] - * IntuneAntivirusPolicyWindows10SettingCatalog - * Add missing properties - * IntuneAppConfigurationPolicy - * Fix comparison in Test-TargetResource - FIXES [#4451](https://github.com/microsoft/Microsoft365DSC/issues/4451) - * IntuneDeviceCompliancePolicyWindows10 - * Fix group assignment by using the corrected function - Update-DeviceConfigurationPolicyAssignment from module M365DSCDRGUtil - FIXES [#4467](https://github.com/microsoft/Microsoft365DSC/issues/4467) - * IntuneDeviceEnrollmentPlatformRestriction - * Fixed an issue where nested settings would throw a conflict - FIXES [#4082](https://github.com/microsoft/Microsoft365DSC/issues/4082) - * IntuneDeviceEnrollmentStatusPageWindows10 - * Added support for specifying SelectedMobileAppNames in addition to SelectedMobileAppIds, - which are different for each tenant. - FIXES [#4494](https://github.com/microsoft/Microsoft365DSC/issues/4494) + * Fixed a potential issue if the total directory roles increases in future. + * AADGroup + * Fixed a potential issue if the total directory roles increases in future. + * AADAdministrativeUnit, AADApplication, + AADEntitlementManagementConnectedOrganization, AADGroup, AADUser + * Replace old cmdlet and deprecated Remove-Mg\*ByRef with equivalent + Remove-Mg\*DirectoryObjectByRef which is available in Graph 2.17.0 + * AADRoleEligibilitySecheduleRquest + * Cleaned Export logic. + * EXOActiveSyncDeviceAccessRule + * Retrieve instance by Identity if not found by characteristic. + * EXOMailboxSettings + * Simplifyied the Setlogic and removed Timezone validation to remove checks + to regstry key which caused issues in Linux. * M365DSCRuleEvaluation - * Log both matching and not matching resources and in XML format - * O365OrgSettings - * Fixed missing permissions in settings.json - * SPOAccessControlSettings - * [BREAKING CHANGE] Removed CommentsOnSitePagesDisabled parameter, because of - duplication in SPOTenantSettings - FIXES [#3576](https://github.com/microsoft/Microsoft365DSC/issues/3576) - * [BREAKING CHANGE] Moved SocialBarOnSitePagesDisabled parameter to SPOTenantSettings, - because it makes more sense there. This has nothing to do with Access Control. + * Changed logic to retrieve resource information. + * SCRoleGroup + * Initial Release. + * SCRoleGroupMember + * Initial Release. * SPOTenantSettings - * [BREAKING CHANGE] Removed ConditionalAccessPolicy parameter, because of - duplication in SPOAccessControlSettings - FIXES [#3576](https://github.com/microsoft/Microsoft365DSC/issues/3576) - * Added SocialBarOnSitePagesDisabled parameter, moved from SPOAccessControlSettings. - * Added EnableAIPIntegration. - * TeamsChannelTab - * Fixed schema file - * TeamsGroupPolicyAssignment - * Skip assignments that have orphaned/deleted groups or without display name - instead of throwing an error - FIXES [#4407](https://github.com/microsoft/Microsoft365DSC/issues/4407) - * TeamsTenantDialPlan - * Fix output of property NormalizationRules as a string to the blueprint - FIXES [#4428](https://github.com/microsoft/Microsoft365DSC/issues/4428) - * Fix creation, update and deletion of resource - * TeamsUpdateManagementPolicy - * Adds support for the NewTeamsOnly value or the UseNewTeamsClient property. - FIXES [#4496](https://github.com/microsoft/Microsoft365DSC/issues/4496) + * Add property TenantDefaultTimezone + Implements [#4189](https://github.com/microsoft/Microsoft365DSC/issues/4189) * DEPENDENCIES - * Updated DSCParser to version 2.0.0.3. + * Updated Microsoft.Graph dependencies to version 2.17.0. + * Updated MSCloudLoginAssistant dependencies to version 1.1.15. + * Updated MicrosoftTeams to version 6.1.0. * MISC - * Initial release of Get-M365DSCEvaluationRulesForConfiguration - * M365DSCDRGUtil - Fix Update-DeviceConfigurationPolicyAssignment so that if the group cannot - be found by its Id it tries to search it by display name - FIXES [#4467](https://github.com/microsoft/Microsoft365DSC/issues/4467) - * M365DSCReport - Fix issue when asserting resources not covered by current conditions in - Get-M365DSCResourceKey by always returning all their mandatory parameters - FIXES [#4502](https://github.com/microsoft/Microsoft365DSC/issues/4502) - * Fix broken links to integration tests in README.md - * Changing logic to retrieve DSC Resources properties not to use DSC - specific cmdlets.' + * Provided the ability to force reload the EXO or SC modules to prevent + calling the wrong cmdlet where the same names are defined (e.g. Get-RoleGroup). + * Telemetry + * Get operating system using faster method to speed up telemetry calls.' # Flag to indicate whether the module requires explicit user acceptance for install/update # RequireLicenseAcceptance = $false