Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Skip the wait in Sql Server deployment #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrmasterplan
Copy link
Contributor

Step 1 introduce the error and see at which step it fails.

@@ -10,7 +10,8 @@ Graph-CreateRole -principalId $spId -roleDefinitionId 88d8e3e3-8f55-4a1e-953a-9b
Ignore-Errors # The role may already be there if we re-deploy

Write-Host "Waiting for role to settle...." -ForegroundColor DarkYellow
Start-Sleep -seconds 60 # If the Directory Reader is not there, increase te seconds here.
#Start-Sleep -seconds 60 # If the Directory Reader is not there, increase te seconds here.
#skip this and let's see where it fails
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure AD is a bit slow sometimes. The SQL server identity needed "Directory Reader" role. That takes apparently some time before AD gives the role.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants