Azure Runbook - Start-Stop Azure ARM VMs in a defined sequence using Tags

This Azure Runbook Workflow helps to Start/Stop VMs in Azure ARM portal in a defined sequence using Tags To onboard servers, simply add a Tag named 'AutoStart' with a Json formatted value in the form {"Group":"1","Sequence":"2"} You can target individual GROUPS or ALL

 
 
 
 
 
(0)
1,721 times
Add to favorites
Windows Azure
2/6/2018
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Cannot process command because of one or more missing mandatory ResourceGroupName
    3 Posts | Last post October 16, 2018
    • Get-AzureRmVM : Cannot process command because of one or more missing mandatory parameters: ResourceGroupName Name.
      
      At line:202 char:18
      
      + ... AllAzureRMVMs = get-azurermvm -Status -WarningAction SilentlyContinue
      
      +                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
          + CategoryInfo          : InvalidArgument: (:) [Get-AzureRmVM], ParameterBindingException
      
          + FullyQualifiedErrorId : MissingMandatoryParameter,Microsoft.Azure.Commands.Compute.GetAzureVMCommand
      
       
      
      # Grouping maintained for compatibility with old method - having to target all servers
      
      Found 0 Server Groups
      
      Get-AzureRmVM : Cannot process command because of one or more missing mandatory parameters: ResourceGroupName Name.
      
      At line:289 char:16
      
      + $newVMstatus = Get-AzureRmVM -Status -WarningAction SilentlyContinue
      
      +                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
          + CategoryInfo          : InvalidArgument: (:) [Get-AzureRmVM], ParameterBindingException
      
          + FullyQualifiedErrorId : MissingMandatoryParameter,Microsoft.Azure.Commands.Compute.GetAzureVMCommand
      
      
    • My Bad: Updated Azure.Compute Module to the latest version , it's working as expected. Thank you
    • yes, you got it!