Giter VIP home page Giter VIP logo

azurescheduledeventsservice's Introduction

Azure Scheduled Events Service

This project enables your Azure Virtual Machines to subscribe to Scheduled Events which informs your application about upcoming Azure Maintenance. The project is for Windows Virtual Machines and contains a powershell script that listens and logs the events to Windows Event logs. These logs can be then exported to Azure Monitor to then build alerting.

Steps

  1. Place the SchService.ps1 on your Azure Windows Virtual Machine
  2. Open a PowerShell command and run the following command to setup the Service. .\SchService.ps1 -Setup
  3. Now run the following command to start the Service .\SchService.ps1 -Start
  4. Validate the Service status by running the following command and make sure it is running .\SchService.ps1 -status
  5. Once the service is setup and started, it will log the following events in the Application event.
  6. The service will now start polling every 10 seconds for any scheduled events and auto approve the same. Freeze, Reboot, Redeploy and Preempt are the events captures by Schedule events.
  7. When any of the above events are captured by Schedule Event service, it will get logged in the application event log with Event Status, Event Type, Resources (VM Name) and NotBefore(minimum notice period)

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

azurescheduledeventsservice's People

Contributors

microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar sandeepgeorge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

azurescheduledeventsservice's Issues

Enable AzureScheduledEventsService for AKS nodes

Hi team,

I would like to setup monitoring for scheduled events on AKS nodes, I go through the below document, however, it only supports to collect the scheduled events from virtual machines in the same availability set, but for AKS, the nodes are located in VMSS, and if the VMSS is linux, it is not able to create a Windows VM in the linux VMSS. In this case, how can we make it for AKS nodes?

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/scheduled-event-service

Negative Impact on CPU Utilization

Running the SchService.ps1 service seems to have a high impact on CPU utilization. Is there anything that can be done to reduce the burden?

The intent is to run this on VM's configured as SQL Server Availability Group replicas. It is not desirable to share the RDBMS load with this service, but it is necessary that we see potential Scheduled Maintenance Events.

Thanks!

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.