Skip to content

Instantly share code, notes, and snippets.

@rchaganti
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchaganti/656fd3a8e6b6368ed5dc to your computer and use it in GitHub Desktop.
Save rchaganti/656fd3a8e6b6368ed5dc to your computer and use it in GitHub Desktop.
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