Skip to content

A small PowerShell script to use in a Runbook in Azure Automation for starting a VM.

Notifications You must be signed in to change notification settings

JSaaS/StartVM-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

StartVM-automation

A small PowerShell script to use in a Runbook in Azure Automation for starting a VM.

A couple of things needs to be altered in this PowerShell-script before you actually run it:

  • Set $SAMI to the object ID of your Managed Identity of your Automation Account. You can find that in the Automation Account side menu under 'Identity'
  • Set $automationAccount to the name of your Automation Account

When calling this Runbook you will have four parameters in total. You need to give values to three of them:

  • resourceGroup - The name of the resource group where your VM resides
  • VMName - The name of your VM
  • method - 'SA' for System Assigned. This refers to the identity of your Automation Account.

About

A small PowerShell script to use in a Runbook in Azure Automation for starting a VM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published