Monitor – MS Azure Status using Powershell

If you are using MS Azure or MS Office 365 you are depending on the uptime of all the MS Cloud services.

Well to monitor this there is the Azure Status site.


This site offers for each service a RSS subscription to monitor the status.

In this case there was an issue, so we can kick in Powershell to grab the RSS output.

Here we go



$hsg = Invoke-WebRequest  ""


[xml]$ret = $hsg.Content.TrimStart("")

#$ | Select-Object *

write-host ""

if($ -eq $null){

        write-host $ " On : "  $
        write-host "All services are working properly"
        write-host ""

    write-host $ " On : "  $
    Write-Host "Issue Category : " $
    write-host ""
    Write-Host "Details : " $

    write-host ""


rv hsg, ret

As you can see the raw XML data is prefixed (deliberately or not?) by a few strange characters which we have to eliminate before PowerShell can dig it.

So the final output is like this.


So you can create a job to have this run at a frequency to check for uptime issues.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: