Skip to content

Commit

Permalink
Merge pull request #5475 from NikCharlebois/MSFT_AADFilteringPolicyRu…
Browse files Browse the repository at this point in the history
…leDestination

MSFT_AADFilteringPolicyRuleDestination Fix for Export
  • Loading branch information
NikCharlebois authored Nov 27, 2024
2 parents 2adbaf6 + c31e6a9 commit f78ad46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

* AAD
* Added ApplicationSecret auth method to multiple resources
* AADFilteringPolicyRule
* Fixed an issue with the export of the Destinations property where
the CIMInstance array object was malformed.
* EXOEOPProtectionPolicyRule
* Added support for AccessTokens.
* EXOExternalInOutlook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ function Export-TargetResource

if ($Results.Destinations)
{
$currentDSCBlock = Convert-DSCStringParamToVariable -DSCBlock $currentDSCBlock -ParameterName 'Destinations' -IsCIMArray:$false
$currentDSCBlock = Convert-DSCStringParamToVariable -DSCBlock $currentDSCBlock -ParameterName 'Destinations' -IsCIMArray:$true
}
$dscContent += $currentDSCBlock
Save-M365DSCPartialExport -Content $currentDSCBlock `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@ function Set-TargetResource
}
$createParameters.ExemptedAppProtocols = $myExemptedAppProtocols


$policy = New-MgBetaDeviceAppManagementiOSManagedAppProtection -BodyParameter $createParameters

Update-IntuneAppProtectionPolicyiOSApp -IosManagedAppProtectionId $policy.id -Apps $myApps
Expand Down Expand Up @@ -813,7 +812,6 @@ function Set-TargetResource
}
$updateParameters.ExemptedAppProtocols = $myExemptedAppProtocols


Update-MgBetaDeviceAppManagementiOSManagedAppProtection -IosManagedAppProtectionId $Identity -BodyParameter $updateParameters

Update-IntuneAppProtectionPolicyiOSApp -IosManagedAppProtectionId $Identity -Apps $myApps
Expand Down

0 comments on commit f78ad46

Please sign in to comment.