Hi,
I would like to have a script regularly check for a service running within Azure and if for some reason that service is down, alert the specified admins accordingly. I understand how to get the status of any given service, however, I am not sure how to script something that looks for a specific result.
Here is the command I am utilizing to get the information I want:
<<<<<< <<
Get-AzureDeployment -ServiceName ubunu
*
*
Status : Running
>>>>>>>>
Status is what i need to look at. I have no idea how to script something that looks for that specific result and then does something. I am thinking an "If, Then" statement, but what commands would look for the result?
Also if there is a suggestion on a different way to go about getting a service status please let me know.
Thanks!