Giter Site home page Giter Site logo

arvindmits / azure-alerts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ricmmartins/azure-alerts

0.0 1.0 0.0 713 KB

The purpose of this repository is to share a guidance on how to be alerted about the creation or changes of virtual machines in your Azure subscription.

azure-alerts's Introduction

Being alerted about creation or updates of Virtual Machines in your Azure Subscription

In this document, I'll show you how to be alerted when a VM is created or updated inside your Azure environment. Please note that updated means started, stopped, restarted, have their size or any characteristic changed.

To do this, we will be using the Azure Activity Logs that is part of the Azure platform logs and provides insights into subscription-level events.

Just as a reminder, please note that the Azure Activity Logs are enabled by default and stored in the Azure platform for 90 days. If you want to have retained from more than 90 days, you should configure to send the data to a Log Analytics Workspace if you want enable features of Azure Monitor Logs, to Event Hubs if you want to send the data outside of Azure or to Azure Storage if you want to retain the log data for audit, static analysis or backup.

  1. First of all, ensure you are sending the Activity Logs to a Log Analytics Workspace.

  2. Then go to the Azure Monitor > Alerts and click to + New alert rule

alerts

  1. Select your subscription as Scope:

Please note that for the purpose of this document we will be monitoring the entire subscription. But if you want, you can filter by resource type and/or location and monitor only a specific resource group/resource/location.

setsubscription

  1. In Condition search by "Create or update Virtual Machine" then select the first result:

Note that you can search for different options to see other alternatives available. Just as example, if you want be alerted only for added VMs, you can filter by "Add Virtual Machines".

signallogic

  1. In the second screen that will show-up, choose the Chart period then click Done:

configuresignal

  1. Now set the Action group and the Alert rule details then click to Create alert rule:

actiongroup

  1. If everything is ok, you may have something like this:

alertrule

  1. Now, when a new VM is created or changed into your subscription, you will receive those kind of alerts by e-mail (if this was your choice - remember you can be alerted also by sms or through a webhook):

email

azure-alerts's People

Contributors

ricmmartins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.