Giter Club home page Giter Club logo

azurevmautostopstart's Introduction

AzureVMAutoStopStart

What is it?

A powershell workflow runbook, "Stop-Start-Azure-VMs", and a powershell module, "AzureVMAutoStopStart".

How do I use it?

The runbook should run under a schedule within an Azure Automation Account, and uses the module to determine, based the subscription and tag names supplied, which VMs should be stopped or started. The tag should contain the times and days a VM should be stopped. If the runbook is executing during one of these periods, the VM will be stopped (if started). Otherwise the VM will be started (if stopped).

Tag Format

The tag must be in the format HH:mm-hh:mm|ddd[/ddd][,...n]. So, a tag may look like any of the these:

Description Tag Value
Stopped between 10.30pm - 1.30am Wednesdays 22:30-01:30|Wed
Stopped between 10.30pm - 1.30am Wednesdays and Thursdays 22:30-01:30|Wed/Thu
Stopped between 10.30pm - 1.30am Wednesdays and Thursdays and all day Saturdays 22:30-01:30|Wed/Thu,00:00-00:00|Sat
Stopped between 10.30pm - 1.30am Wednesdays and Thursdays, all day Saturdays and 9am - 11:45pm Sundays 22:30-01:30|Wed/Thu,00:00-00:00|Sat,09:00-23:45|Sun

azurevmautostopstart's People

Contributors

asos-benhoward avatar bjh1977 avatar

Watchers

James Cloos avatar Simon Sabin avatar  avatar

Forkers

chintu481

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.