Skip to content

Commit

Permalink
Merge pull request #1173 from microsoft/Dev
Browse files Browse the repository at this point in the history
Release 1.21.421.2
  • Loading branch information
NikCharlebois authored Apr 21, 2021
2 parents a789fa4 + d889cc3 commit 959169d
Show file tree
Hide file tree
Showing 10 changed files with 132 additions and 50 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log for Microsoft365DSC

# 1.21.421.2

* MISC
* Updated the SkipModuleReload logic for a dozen of EXO modules
which were failing authentication;

# 1.21.421.1

* AADConditionalAccessPolicy
Expand Down Expand Up @@ -50,7 +56,7 @@
* Fixed issue in most EXO resources where AzureAD App information
was not returned by the Get-TargetResource function;

1.21.331.1
# 1.21.331.1

* AADApplication
* Added support for API Permissions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ function Get-TargetResource

)
Write-Verbose -Message "Getting configuration of Accepted Domain for $Identity"
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,18 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting Active Sync Device Access Rule configuration for $Identity"
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting Address Book Policy configuration for $Name"
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,18 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting configuration of AddressList for $Name"
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down Expand Up @@ -358,9 +367,17 @@ function Set-TargetResource

$currentAddressListConfig = Get-TargetResource @PSBoundParameters

$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport
if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,18 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting configuration of AntiPhishPolicy for $Identity"
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,18 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting configuration of SafeLinksPolicy for $Identity"
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,18 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting configuration of SCCaseHoldPolicy for $Name"
$ConnectionMode = New-M365DSCConnection -Platform 'SecurityComplianceCenter' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport

if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ function Get-TargetResource
)

Write-Verbose -Message "Getting configuration of Device Configuration Policy for $Name"
$ConnectionMode = New-M365DSCConnection -Platform 'SecurityComplianceCenter' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $Global:CurrentModelIsExport


if ($Global:CurrentModeIsExport)
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters `
-SkipModuleReload $true
}
else
{
$ConnectionMode = New-M365DSCConnection -Platform 'ExchangeOnline' `
-InboundParameters $PSBoundParameters
}

#region Telemetry
$ResourceName = $MyInvocation.MyCommand.ModuleName.Replace("MSFT_", "")
$data = [System.Collections.Generic.Dictionary[[String], [String]]]::new()
Expand Down
38 changes: 17 additions & 21 deletions Modules/Microsoft365DSC/Microsoft365DSC.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# RootModule = ''

# Version number of this module.
ModuleVersion = '1.21.421.1'
ModuleVersion = '1.21.421.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -176,29 +176,25 @@
IconUri = 'https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/Dependencies/Images/Logo.png?raw=true'

# ReleaseNotes of this module
ReleaseNotes = "# 1.21.414.1
ReleaseNotes = "# 1.21.421.2
* MISC
* Updated the SkipModuleReload logic for a dozen of EXO modules
which were failing authentication;
# 1.21.421.1
* AADConditionalAccessPolicy
* Fixed an issue with the default values for device states;
* EXOHostedContentFilterPolicy
* Fixed issue where EndUserSpamNotificationCustomFromName was
not properly returned from the Get-TargetResource function;
* Fix to allow 'undefined' as a value for multiple parameters;
* EXOTransportRule
* New resource;
* O365AdminAuditLogConfig
* Fixed issue where the Set-TargetResource stopped being
executed if an error was encountered;
* TeamsTeam
* Fix format issue with owner issue # 1143
* DEPENDENCIES
* Updated AzureADPreview to version 2.0.2.134;
* Updated Microsoft.Graph.Authentication to version 1.4.2;
* Updated Microsoft.Graph.Planner to version 1.4.2;
* Updated Microsoft.Graph.Teams to version 1.4.2;
* Updated Microsoft.PowerApps.Administration.PowerShell to version
2.0.112;
* Updated MSCloudLoginAssistant to version 1.0.51;
* Updated PnP.PowerShell to version 1.5.0;"
* Fixed schema to support Service Principal Auth;
* TeamsChannelTab
* Fixed typo in parameter 'TeamId';
* MISC
* Refactor of all EXO resources to fixes for Set-TargetResource
functions where Service Principal was used to authenticate;
* Refactored connections across all resources to help with
Telemetry regarding what auth method users are leveraging."

# Flag to indicate whether the module requires explicit user acceptance for install/update
# RequireLicenseAcceptance = $false
Expand Down

0 comments on commit 959169d

Please sign in to comment.