Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/Dev' into Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Jan 23, 2024
2 parents 0d4f35b + dce9ea3 commit df168e1
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
* EXOActiveSyncDeviceAccessRule
* Changed the way Identity is determined by using a combination of the
QueryString and Characteristic parameters.
* EXOAddressList
* Fixed an issue trying to create a new instance when DisplayName is empty.
* SCAutoSensitivityLabelRule
* Correct export indentation, which caused an issue with report conversion to JSON.
FIXES [[#4240](https://github.com/microsoft/Microsoft365DSC/issues/4240)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,14 @@ function Set-TargetResource
ConditionalCustomAttribute9 = $ConditionalCustomAttribute9
ConditionalDepartment = $ConditionalDepartment
ConditionalStateOrProvince = $ConditionalStateOrProvince
DisplayName = $DisplayName
IncludedRecipients = $IncludedRecipients
Confirm = $false
}

if (-not [System.String]::IsNullOrEmpty($DisplayName))
{
$NewAddressListParams.Add('DisplayName', $DisplayName)
}
}
New-AddressList @NewAddressListParams
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
EXOAntiPhishRule 'ConfigureAntiPhishRule'
Expand All @@ -25,8 +26,7 @@ Configuration Example
AntiPhishPolicy = "Our Rule"
RecipientDomainIs = $null
Enabled = $True
SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com")
Priority = 1
SentToMemberOf = @("executives@$Domain")
Ensure = "Present"
Credential = $Credscredential
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
EXOAntiPhishRule 'ConfigureAntiPhishRule'
Expand All @@ -21,12 +22,11 @@ Configuration Example
ExceptIfSentTo = $null
SentTo = $null
ExceptIfRecipientDomainIs = $null
Comments = $null
Comments = "This is an updated comment." # Updated Property
AntiPhishPolicy = "Our Rule"
RecipientDomainIs = $null
Enabled = $True
SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com")
Priority = 2 # Updated Property
SentToMemberOf = @("executives@$Domain")
Ensure = "Present"
Credential = $Credscredential
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
$Domain = $Credscredential.Username.Split('@')[1]
EXOCalendarProcessing "CalendarProcessing"
{
AddAdditionalResponse = $False;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
AntiPhishPolicy = "Our Rule"
RecipientDomainIs = $null
Enabled = $True
SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com")
Priority = 1
SentToMemberOf = @("executives@$Domain")
Ensure = "Present"
Credential = $Credscredential
}
Expand Down
10 changes: 5 additions & 5 deletions docs/docs/resources/exchange/EXOAntiPhishRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC
$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
EXOAntiPhishRule 'ConfigureAntiPhishRule'
Expand All @@ -73,8 +74,7 @@ Configuration Example
AntiPhishPolicy = "Our Rule"
RecipientDomainIs = $null
Enabled = $True
SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com")
Priority = 1
SentToMemberOf = @("executives@$Domain")
Ensure = "Present"
Credential = $Credscredential
}
Expand All @@ -97,6 +97,7 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC
$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
EXOAntiPhishRule 'ConfigureAntiPhishRule'
Expand All @@ -106,12 +107,11 @@ Configuration Example
ExceptIfSentTo = $null
SentTo = $null
ExceptIfRecipientDomainIs = $null
Comments = $null
Comments = "This is an updated comment." # Updated Property
AntiPhishPolicy = "Our Rule"
RecipientDomainIs = $null
Enabled = $True
SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com")
Priority = 2 # Updated Property
SentToMemberOf = @("executives@$Domain")
Ensure = "Present"
Credential = $Credscredential
}
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/resources/exchange/EXOCalendarProcessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC
$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
$Domain = $Credscredential.Username.Split('@')[1]
EXOCalendarProcessing "CalendarProcessing"
{
AddAdditionalResponse = $False;
Expand Down

0 comments on commit df168e1

Please sign in to comment.