Azure Compute Cost savings

  • Run for all VMs listed in VM List (applicable for single RG only)
  • If no arguments (neither ResourceGroup nor VM List) is provided, it will run for all the RGs and VMs within the scope of Service Connection with exclude list of VMs option (if required)
schedules:- cron: "0 18, * * *" #Run pipeline to STOP the VMs at 06PM  displayName: Daily turnoff schedule  branches:include:- mainalways: truename: $(Build.BuildId)_STOP_VMs  # build numbering formatparameters:- name: Action  displayName: Action  type: string  default: Stopvalues:- Start- Stop- Restarttrigger:- mainpool:vmImage: windows-lateststeps:- task: AzureVMStartStop@1  inputs:   ResourceGroupName: $(ResourceGroupName)   Action: 'Stop'   ConnectedServiceName: 'sc-cbsed-lab'   Simulate: false   vmsExcludedFromAction: '$(vmsExcludedFromAction)'  displayName: 'VM - Stop Schedule'

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store