Skip to content

Commit 9cd632a

Browse files
authored
Merge pull request #104045 from metanMSFT/metan/update-powershell
[CogSvcs] Fix for Immersive Reader PowerShell script
2 parents 8f3d4eb + 9a187dd commit 9cd632a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/cognitive-services/immersive-reader/how-to-create-immersive-reader.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ The script is designed to be flexible. It will first look for existing Immersive
105105
Write-Host "New service principal created successfully"
106106
}
107107
108+
# Sleep for 5 seconds to allow the new service principal to propagate
109+
Write-Host "Sleeping for 5 seconds"
110+
Start-Sleep -Seconds 5
111+
108112
Write-Host "Granting service principal access to the newly created Immersive Reader resource"
109113
$accessResult = az role assignment create --assignee $principalId --scope $resourceId --role "Cognitive Services User"
110114
if (-not $accessResult) {

0 commit comments

Comments
 (0)