Get Azure Service Status alerts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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