Giter VIP home page Giter VIP logo

azureautomation / stop-azure-vms-in-the-order-you-want-using-tiers Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 6 KB

This runbook stops all VM's in a subscription and allows you to specify the preferred order to stop Azure Virtual Machines.This script uses either certificate-based authentication to connect to Azure, which could be considered "depricated",using the $AzureConnectionName par

License: Other

PowerShell 100.00%
azureautomationrunbookgallery

stop-azure-vms-in-the-order-you-want-using-tiers's Introduction

Stop Azure VMs in the order you want using tiers.

 

This runbook stops all VM's in a subscription and allows you to specify the preferred order to stop Azure Virtual Machines.

This script uses either certificate-based authentication to connect to Azure, which could be considered 'depricated',

using the $AzureConnectionName parameter, or authentication using an Organizational ID, using the $AzureCredentials

and $AzureSubscriptionName parameters.

 

You need to specify either $AzureConnectionName or $AzureCredentials and $AzureSubscriptionName. If all are specified, the script will use $AzureConnectionName

Servers that you do not want to stop, can be specified in the $DontStop parameter. Wildcards are supported. Servers that you want to stop first, can be specified in the $FirstStopServersByTier parameter. Wildcards are supported. Servers that you want to stop last, can be specified in the $LastStopServersByTier parameter. Wildcards are supported.

Known limitations If you use the $AzureCredentials and $AzureSubscriptionName to connect to you Azure subscription, and you have two subscriptions with the same name, the output is unpredictable or the script might fail. If you have servers with the same name in different Cloud Services, you cannot handle these servers differently.

E.g. if you tell the script not to stop a server called 'DC1', and this server exists in two different Cloud Services,

none of the servers called 'DC1' will be stopped. PaaS Virtual Machines will be treated as IaaS virtual machines. It's not possible to shut down specific instances of a PaaS role.

 

 

TechNet gallery is retiring! This script was migrated from TechNet script center to GitHub by Microsoft Azure Automation product group. All the Script Center fields like Rating, RatingCount and DownloadCount have been carried over to Github as-is for the migrated scripts only. Note : The Script Center fields will not be applicable for the new repositories created in Github & hence those fields will not show up for new Github repositories.

stop-azure-vms-in-the-order-you-want-using-tiers's People

Watchers

 avatar  avatar  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.