Skip to content

Commit

Permalink
Merge pull request #2516 from microsoft/Dev
Browse files Browse the repository at this point in the history
Release 1.22.1109.1
  • Loading branch information
NikCharlebois authored Nov 9, 2022
2 parents 2f5b60e + 67d500a commit 917bdd0
Show file tree
Hide file tree
Showing 69 changed files with 664 additions and 213 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change log for Microsoft365DSC

# 1.22.1109.1

* EXODataClassification
* FIXES [#2487](https://github.com/microsoft/Microsoft365DSC/issues/2487)
* EXOHostedOutboundSpamFilterPolicy
* Add support to create and remove Hosted Outbound Spam Filter Policies
* FIXES [#2492](https://github.com/microsoft/Microsoft365DSC/issues/2492)
* IntuneAntivirusPolicyWindows10SettingCatalog
* FIXES [#2463](https://github.com/microsoft/Microsoft365DSC/issues/2463)
* Returns all type of policies from the template family: endpointSecurityAntivirus
* MISC
* Fixes and issue with ManagedIdentity Parameter not being not removed correctly in a parameterset.
* FIXES [#2464](https://github.com/microsoft/Microsoft365DSC/issues/2464)
* DEPENDENCIES
* Updated Microsoft.Graph.* to version 1.15.0;

# 1.22.1102.1

* AADAdministrativeUnit
Expand All @@ -8,6 +24,7 @@
* Initial release;
* DEPENDENCIES
* Updated MicrosoftTeams to version 4.9.0;
* Updated MSCloudLoginAssistant to version 1.0.97;

# 1.22.1026.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function Set-TargetResource
$PSBoundParameters.Remove('TenantId') | Out-Null
$PSBoundParameters.Remove('CertificateThumbprint') | Out-Null
$PSBoundParameters.Remove('CertificatePassword') | Out-Null
$PSBoundParameters.Remove('Managedidentity') | Out-Null
$PSBoundParameters.Remove('ManagedIdentity') | Out-Null
$PSBoundParameters.Remove('CertificatePath') | Out-Null
$PSBoundParameters.Remove('Credential') | Out-Null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function Set-TargetResource
$CreationParams.Remove('CertificateThumbprint') | Out-Null
$CreationParams.Remove('CertificatePath') | Out-Null
$CreationParams.Remove('CertificatePassword') | Out-Null
$CreationParams.Remove('Managedidentity') | Out-Null
$CreationParams.Remove('ManagedIdentity') | Out-Null

# New-AntiPhishRule has the Enabled parameter, Set-AntiPhishRule does not.
# There doesn't appear to be any way to change the Enabled state of a rule once created.
Expand All @@ -344,7 +344,7 @@ function Set-TargetResource
$UpdateParams.Remove('CertificateThumbprint') | Out-Null
$UpdateParams.Remove('CertificatePath') | Out-Null
$UpdateParams.Remove('CertificatePassword') | Out-Null
$UpdateParams.Remove('Managedidentity') | Out-Null
$UpdateParams.Remove('ManagedIdentity') | Out-Null

# Check to see if the specified policy already has the rule assigned;
$existingRule = Get-AntiPhishRule | Where-Object -FilterScript { $_.AntiPhishPolicy -eq $AntiPhishPolicy }
Expand Down Expand Up @@ -474,7 +474,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

if ($null -eq $PSBoundParameters.Enabled)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function Set-TargetResource
$AtpPolicyParams.Remove('CertificateThumbprint') | Out-Null
$AtpPolicyParams.Remove('CertificatePath') | Out-Null
$AtpPolicyParams.Remove('CertificatePassword') | Out-Null
$AtpPolicyParams.Remove('Managedidentity') | Out-Null
$AtpPolicyParams.Remove('ManagedIdentity') | Out-Null
Write-Verbose -Message "Setting AtpPolicyForO365 $Identity with values: $(Convert-M365DscHashtableToString -Hashtable $AtpPolicyParams)"

Set-AtpPolicyForO365 @AtpPolicyParams
Expand Down Expand Up @@ -330,7 +330,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Set-TargetResource
$AvailabilityAddressSpaceParams.Remove('CertificateThumbprint') | Out-Null
$AvailabilityAddressSpaceParams.Remove('CertificatePath') | Out-Null
$AvailabilityAddressSpaceParams.Remove('CertificatePassword') | Out-Null
$AvailabilityAddressSpaceParams.Remove('Managedidentity') | Out-Null
$AvailabilityAddressSpaceParams.Remove('ManagedIdentity') | Out-Null

if (('Present' -eq $Ensure ) -and ($null -eq $AvailabilityAddressSpace))
{
Expand Down Expand Up @@ -400,7 +400,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$DesiredValues = $PSBoundParameters
if ($OrgWideAccount.Contains('@'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function Set-TargetResource
$CASMailboxPlanParams.Remove('CertificateThumbprint') | Out-Null
$CASMailboxPlanParams.Remove('CertificatePath') | Out-Null
$CASMailboxPlanParams.Remove('CertificatePassword') | Out-Null
$CASMailboxPlanParams.Remove('Managedidentity') | Out-Null
$CASMailboxPlanParams.Remove('ManagedIdentity') | Out-Null

$CASMailboxPlans = Get-CASMailboxPlan
$CASMailboxPlan = $CASMailboxPlans | Where-Object -FilterScript { $_.Identity -eq $Identity }
Expand Down Expand Up @@ -330,7 +330,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ function Set-TargetResource
$CASMailboxParams.Remove('CertificateThumbprint') | Out-Null
$CASMailboxParams.Remove('CertificatePath') | Out-Null
$CASMailboxParams.Remove('CertificatePassword') | Out-Null
$CASMailboxParams.Remove('Managedidentity') | Out-Null
$CASMailboxParams.Remove('ManagedIdentity') | Out-Null

# CASE: Mailbox doesn't exist but should;
if ($Ensure -eq 'Present' -and $currentMailbox.Ensure -eq 'Absent')
Expand Down Expand Up @@ -694,7 +694,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function Set-TargetResource
$ClientAccessRuleParams.Remove('CertificateThumbprint') | Out-Null
$ClientAccessRuleParams.Remove('CertificatePath') | Out-Null
$ClientAccessRuleParams.Remove('CertificatePassword') | Out-Null
$ClientAccessRuleParams.Remove('Managedidentity') | Out-Null
$ClientAccessRuleParams.Remove('ManagedIdentity') | Out-Null
if ($ClientAccessRuleParams.RuleScope)
{
$ClientAccessRuleParams += @{
Expand Down Expand Up @@ -492,7 +492,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function Get-TargetResource
CertificateThumbprint = $CertificateThumbprint
CertificatePath = $CertificatePath
CertificatePassword = $CertificatePassword
Managedidentity = $ManagedIdentity.IsPresent
ManagedIdentity = $ManagedIdentity.IsPresent
TenantId = $TenantId
}

Expand Down Expand Up @@ -247,7 +247,7 @@ function Set-TargetResource
$DataClassificationParams.Remove('CertificateThumbprint') | Out-Null
$DataClassificationParams.Remove('CertificatePath') | Out-Null
$DataClassificationParams.Remove('CertificatePassword') | Out-Null
$DataClassificationParams.Remove('Managedidentity') | Out-Null
$DataClassificationParams.Remove('ManagedIdentity') | Out-Null


if (('Present' -eq $Ensure ) -and ($null -eq $DataClassification))
Expand Down Expand Up @@ -377,7 +377,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down Expand Up @@ -464,7 +464,7 @@ function Export-TargetResource
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
CertificatePassword = $CertificatePassword
Managedidentity = $ManagedIdentity.IsPresent
ManagedIdentity = $ManagedIdentity.IsPresent
CertificatePath = $CertificatePath
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function Set-TargetResource
$DataEncryptionPolicyParams.Remove('CertificateThumbprint') | Out-Null
$DataEncryptionPolicyParams.Remove('CertificatePath') | Out-Null
$DataEncryptionPolicyParams.Remove('CertificatePassword') | Out-Null
$DataEncryptionPolicyParams.Remove('Managedidentity') | Out-Null
$DataEncryptionPolicyParams.Remove('ManagedIdentity') | Out-Null

if (('Present' -eq $Ensure ) -and ($null -eq $DataEncryptionPolicy))
{
Expand Down Expand Up @@ -365,7 +365,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function Set-TargetResource
$currentParameters.Remove('CertificateThumbprint') | Out-Null
$currentParameters.Remove('CertificatePath') | Out-Null
$currentParameters.Remove('CertificatePassword') | Out-Null
$currentParameters.Remove('Managedidentity') | Out-Null
$currentParameters.Remove('ManagedIdentity') | Out-Null

# Distribution group doesn't exist but it should
if ($Ensure -eq 'Present' -and $currentDistributionGroup.Ensure -eq 'Absent')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function Set-TargetResource
$DkimSigningConfigParams.Remove('CertificateThumbprint') | Out-Null
$DkimSigningConfigParams.Remove('CertificatePath') | Out-Null
$DkimSigningConfigParams.Remove('CertificatePassword') | Out-Null
$DkimSigningConfigParams.Remove('Managedidentity') | Out-Null
$DkimSigningConfigParams.Remove('ManagedIdentity') | Out-Null
$DkimSigningConfigParams += @{
DomainName = $PSBoundParameters.Identity
}
Expand Down Expand Up @@ -350,7 +350,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Set-TargetResource
$HostedConnectionFilterPolicyParams.Remove('CertificateThumbprint') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('CertificatePath') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('CertificatePassword') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('Managedidentity') | Out-Null
$HostedConnectionFilterPolicyParams.Remove('ManagedIdentity') | Out-Null

if ($HostedConnectionFilterPolicyParams.RuleScope)
{
Expand Down Expand Up @@ -394,7 +394,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null


$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ function Set-TargetResource
$HostedContentFilterPolicyParams.Remove('CertificateThumbprint') | Out-Null
$HostedContentFilterPolicyParams.Remove('CertificatePath') | Out-Null
$HostedContentFilterPolicyParams.Remove('CertificatePassword') | Out-Null
$HostedContentFilterPolicyParams.Remove('Managedidentity') | Out-Null
$HostedContentFilterPolicyParams.Remove('ManagedIdentity') | Out-Null

if ($HostedContentFilterPolicyParams.Contains('EndUserSpamNotificationCustomFromAddress'))
{
Expand Down Expand Up @@ -1091,7 +1091,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

if ($null -ne $ValuesToCheck.AllowedSenders -and $ValuesToCheck.AllowedSenders.Length -eq 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function Set-TargetResource
$CreationParams.Remove('CertificateThumbprint') | Out-Null
$CreationParams.Remove('CertificatePath') | Out-Null
$CreationParams.Remove('CertificatePassword') | Out-Null
$CreationParams.Remove('Managedidentity') | Out-Null
$CreationParams.Remove('ManagedIdentity') | Out-Null
if ($Enabled -and ('Disabled' -eq $CurrentValues.State))
{
# New-HostedContentFilterRule has the Enabled parameter, Set-HostedContentFilterRule does not.
Expand All @@ -336,7 +336,7 @@ function Set-TargetResource
$UpdateParams.Remove('CertificateThumbprint') | Out-Null
$UpdateParams.Remove('CertificatePath') | Out-Null
$UpdateParams.Remove('CertificatePassword') | Out-Null
$UpdateParams.Remove('Managedidentity') | Out-Null
$UpdateParams.Remove('ManagedIdentity') | Out-Null
Write-Verbose -Message "Updating HostedContentFilterRule {$Identity}"
Set-HostedContentFilterRule @UpdateParams
}
Expand Down Expand Up @@ -456,7 +456,7 @@ function Test-TargetResource
$ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$ValuesToCheck.Remove('CertificatePath') | Out-Null
$ValuesToCheck.Remove('CertificatePassword') | Out-Null
$ValuesToCheck.Remove('Managedidentity') | Out-Null
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Loading

0 comments on commit 917bdd0

Please sign in to comment.