Automating Azure Alert Rule Creation Using PowerShell and ARM Templates

Written by Gabriel Mora on Thursday, March 14th 2019 — Categories: Azure, Cloud Hosting, IT Operations, Microsoft, Monitoring

Alert Rules in Azure are a tool to let you know when some condition of your choice has occurred within any given component of your Azure infrastructure. In other words, they alert you to potential problems so you can remedy them before anything serious goes wrong.

Have you ever had the tedious task of creating multiple alerts for all of the resources in your subscription? Let me tell you, it is really time consuming to create them from scratch one by one.

I have a PowerShell Script that can Target and Create specific metric alerts for the resources you define inside of the script, making it much simpler to create a large amount of alerts at one time.

Skip down to the script if you’re familiar with Alerts already. If you aren’t here’s an overview on how they work.

Continue Reading...


Run a Custom Script on an Azure VM When A Log Analytics Alert Is Triggered

Written by Gabriel Mora on Tuesday, February 12th 2019 — Categories: Cloud Hosting, Cloud, Azure, Datacenter Automation, Cloud Hosting, IT Operations

Sometimes you want to trigger a specific action when something is detected by one of your alert rules inside of Azure. If you want to immediately remediate the specific issue you are facing normally you would have to login to the machine once you receive the alert, but by using an Azure Automation account you don’t have to take any additional steps to fix whatever threw the alert — just create your script and leave it to run whenever the alert is triggered. As simple as that.

This works perfectly when you need to resolve a common issue with a trusty PowerShell script that you have often used. This method will save you time and effort; you can rest assured that the issue is being taken care of with the help of a Custom Script Extension.

Running a custom script on a specific machine when an alert is triggered in Log Analytics is quite easy. Here are the following steps you need to follow to achieve this.

Continue Reading...


How to Use VSAE to Create Your First Management Pack to Discover an App Using Its Registry Key

Written by Gabriel Mora on Wednesday, September 26th 2018 — Categories: SCOM, Management Packs, Microsoft

Creating a new Management Pack is not complicated—all you need to do is first install Visual Studio Authoring Extensions.

This blog will walk you through how to create your first Management Pack in Systems Center Operations Manager, one that will discover apps by identifying their registry key.

Continue Reading...

Chat Now