I couldn't figure out how to this natively in orchestrator so I wrote it in powershell, if someone out there can convert this to native orchestrator (i.e. javascript) it would be handy. Maybe even make it part of the default workflows as waiting for a url to become active is likely to be used a lot...
Begin {
$url=$args[0]
$web = New-Object System.Net.WebClient
$web.Proxy = [System.Net.GlobalProxySelection]::GetEmptyWebProxy()
$flag = $false
}
Process {
While ($flag -eq $false) {
Try {
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
Write-Host $env:username
write-host $url
$web.DownloadString($url)
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null
$flag = $True
}
Catch {
Write-host -fore Red "Access down..."
}
}
}
End {
Write-Host -fore Green "Access is back"
}