Skip to content

Commit

Permalink
Update MSFT_AADConditionalAccessPolicy.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Feb 3, 2025
1 parent c8219c0 commit 78df704
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,12 @@ function Get-TargetResource
}
}

$InsiderRiskLevelsValue = $null
if (-not [System.String]::IsNullOrEmpty($Policy.Conditions.InsiderRiskLevels))
{
$InsiderRiskLevelsValue = $Policy.Conditions.InsiderRiskLevels.Split(',')
}

$result = @{
DisplayName = $Policy.DisplayName
Id = $Policy.Id
Expand Down Expand Up @@ -727,7 +733,7 @@ function Get-TargetResource
TransferMethods = [System.String]$Policy.Conditions.AuthenticationFlows.TransferMethods
#Standard part
TermsOfUse = $termOfUseName
InsiderRiskLevels = $Policy.Conditions.InsiderRiskLevels.Split(',')
InsiderRiskLevels = $InsiderRiskLevelsValue
Ensure = 'Present'
Credential = $Credential
ApplicationSecret = $ApplicationSecret
Expand Down

0 comments on commit 78df704

Please sign in to comment.