Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Re: How to tell when vro appliance is fully up

$
0
0

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"

    }


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>