Skip to content

Commit e78dae9

Browse files
authored
Merge pull request #3674 from keystroke/patch-2
Update graph-api-retirement.md
2 parents b01f6c6 + e9a4378 commit e78dae9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

azure-stack/operator/graph-api-retirement.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ $azureStackLegacyGraphApplications = $azureStackApplications |
8181
($_.IdentifierUris | Where-Object { $_ -like 'https://azurebridge*' }) }
8282
8383
# Find which of those applications need to have their authentication behaviors patched to allow access to legacy Graph
84-
$azureStackLegacyGraphApplicationsToUpdate = $azureStackLegacyGraphApplications |
85-
Where-Object { -not ($ab = $_.AdditionalProperties.authenticationBehaviors) -or -not $ab.ContainsKey(($key='blockAzureADGraphAccess')) -or $ab[$key] }
84+
$azureStackLegacyGraphApplicationsToUpdate = $azureStackLegacyGraphApplications | Where-Object {
85+
$oldLocationSet = $false -eq $_.AdditionalProperties.authenticationBehaviors.blockAzureADGraphAccess
86+
$newLocationNotSet = $false -eq $_.AuthenticationBehaviors.BlockAzureAdGraphAccess
87+
return (-not $oldLocationSet -and -not $newLocationNotSet)
88+
}
8689
8790
# Update the applications that require their authentication behaviors patched to allow access to legacy Graph
8891
Write-Host "Found '$($azureStackLegacyGraphApplicationsToUpdate.Count)' total Azure Stack applications which need permission to continue calling Legacy Microsoft Graph Service"

0 commit comments

Comments
 (0)