Skip to content

Instantly share code, notes, and snippets.

@rchaganti
Last active August 29, 2015 14:05
Embed
What would you like to do?
Get Azure Service Status alerts
Function Get-AzureStatus {
$response = Invoke-RestMethod -Uri 'http://azure.microsoft.com/en-us/status/feed/'
if ($response) {
foreach ($item in $response) {
Write-Host "$($item.Title) : " -NoNewline
Write-Host -ForegroundColor Red "$($item.Description)"
}
} else {
Write-Host -ForegroundColor Green "All is well!"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment