title: Azure Resources Health Monitoring
body: <p>What's the best way to add health monitoring to all of my Azure resources in bulk with email notifications.</p>
  
  <p>I can almost see all the information I'm looking for here:
  <a href="https://portal.azure.com/#blade/Microsoft_Azure_Insights/AzureDiagnosticsBladeWithParameter/defaultFilter" rel="nofollow">https://portal.azure.com/#blade/Microsoft_Azure_Insights/AzureDiagnosticsBladeWithParameter/defaultFilter</a>.....</p>
  
  <p>But I don't see a way of creating an email subscription to tell me any time a warning or error message occurs for any of the resources in my subscription. Can this be set up using PowerShell?</p>
  
  <p>It would also be nice to add health check monitoring to all Cloud Services so that if any of the defined Endpoints no long respond to requests, the Cloud Service is marked unhealthy and sends an email notification.</p>
  
  <p>Is there any way to set up this kind of management in PowerShell? It's easy in AWS...</p>