Skip to content

Commit

Permalink
Fix AAD 7.8/9
Browse files Browse the repository at this point in the history
  • Loading branch information
soulemike committed Jul 14, 2024
1 parent ea8bd55 commit de0e7b3
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ Function Test-MtCisaActivationNotification {
return $null
}else{
$EntraIDPlan = Get-MtLicenseInformation -Product EntraID
if($EntraIDPlan -ne "P2"){
Add-MtTestResultDetail -SkippedBecause NotLicensedEntraIDP2
}elseif($EntraIDPlan -ne "Governance"){
Add-MtTestResultDetail -SkippedBecause NotLicensedEntraIDGovernance
if($EntraIDPlan -notin @("P2","Governance")){
if($EntraIDPlan -ne "P2"){
Add-MtTestResultDetail -SkippedBecause NotLicensedEntraIDP2
return $null
}elseif($EntraIDPlan -ne "Governance"){
#This will not currently be hit
Add-MtTestResultDetail -SkippedBecause NotLicensedEntraIDGovernance
return $null
}
}
return $null
}

$roles = Get-MtRole -CisaHighlyPrivilegedRoles
Expand Down

0 comments on commit de0e7b3

Please sign in to comment.