Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:05
What would you like to do?
Get Azure Service Status alerts
Function Get-AzureStatus {
$response = Invoke-RestMethod -Uri ''
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