Skip to content

Commit

Permalink
Merge pull request #5462 from NikCharlebois/Various-Fixes
Browse files Browse the repository at this point in the history
Various fixes
  • Loading branch information
NikCharlebois authored Nov 25, 2024
2 parents 4ca541f + 892d4f7 commit 5b53c37
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@

* AAD
* Added ApplicationSecret auth method to multiple resources
* EXORecipientPermission
* Added logic to update an existing recipient's permissions.
* EXOEOPProtectionPolicyRule
* Added support for AccessTokens.
* EXOExternalInOutlook
* Added support for AccessTokens.
* EXOMailContact
* Changed how empty arrays are returned.
* EXOPlace
* Changed how empty arrays are returned.
* EXORecipientPermission
* Added logic to update an existing recipient's permissions.
* EXOTransportRule
* Changed how empty arrays are returned.

* IntuneAndroidManagedStoreAppConfiguration
* Initial release.
* TeamsUserPolicyAssignment
Expand All @@ -20,7 +27,7 @@
* MISC
* Removed hardcoded Graph urls and replaced by MSCloudLoginAssistant values.
* DEPENDENCIES
* Updated DSCParser to version 2.0.0.13.
* Updated DSCParser to version 2.0.0.14.
* Updated Microsoft.Graph to version 2.25.0.
* Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.200.
* Updated MicrosoftTeams to version 6.7.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ function Get-TargetResource
{
$result."ExtensionCustomAttribute$i" = $contact."ExtensionCustomAttribute$i"
}
else
{
$result."ExtensionCustomAttribute$i" = @()
}
}

Write-Verbose -Message "Found Mail Contact $($Name)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ function Get-TargetResource
}
}

$TagsValue = [Array] $place.Tags
if ($place.Tags -eq $null)
{
$TagsValue = @()
}

$result = @{
Identity = $place.Identity
AudioDeviceName = $place.AudioDeviceName
Expand All @@ -203,7 +209,7 @@ function Get-TargetResource
PostalCode = $place.PostalCode
State = $place.State
Street = $place.Street
Tags = [Array] $place.Tags
Tags = $TagsValue
VideoDeviceName = $place.VideoDeviceName
Credential = $Credential
Ensure = 'Present'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,16 @@ function Get-TargetResource
TenantId = $TenantId
AccessTokens = $AccessTokens
}
$inputParams = (Get-Command 'Get-TargetResource').Parameters
foreach ($key in $inputParams.Keys)
{
$propertyInfo = $inputParams.$key
$curVar = Get-Variable -Name $key -ErrorAction SilentlyContinue
if ($propertyInfo.ParameterType.Name -eq 'String[]' -and $curVar -ne $null -and $curVar.Value -eq $null)
{
$result.$key = @()
}
}

# Formats DateTime as String
if ($null -ne $result.ActivationDate)
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft365DSC/Dependencies/Manifest.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
@{
ModuleName = 'DSCParser'
RequiredVersion = '2.0.0.13'
RequiredVersion = '2.0.0.14'
},
@{
ModuleName = 'ExchangeOnlineManagement'
Expand Down

0 comments on commit 5b53c37

Please sign in to comment.