I've got the following bit of powershell checking a version file on the back of one of my apps.
invoke-webrequest "https://mypi.mydomain/version.htm" | Select-Object -Property Content
This returns a version number and the environment name:
Content
-------
0.3.552.2 webapilive
Trying to get some powershell to search the content for either webapilive or webapilive1 text.
This is to be used in Octopus Deploy and used across two different environments setup in Blue Green deployments. I need it to fail if trying to webapilive on top of webapilive app.
The powershell above returns the content from the page but need to figure out how to check it.