You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Retry creating the TAP up to 10 times, since it can fail due to the user not being fully created yet. Sometimes it takes 2 reties, sometimes it takes 8+. Very annoying. -Bobby
107
108
$Retries=0
109
+
$MAX_TAP_RETRIES=10
108
110
do {
109
111
try {
110
112
$TapRequest=New-GraphPostRequest-uri "https://graph.microsoft.com/beta/users/$($Username)/authentication/temporaryAccessPassMethods"-tenantid $TenantFilter-type POST -body $TapBody
111
113
} catch {
112
114
Start-Sleep-Seconds 2
113
-
Write-Information'ERROR: Failed to create TAP, retrying'
0 commit comments