locked
Bootstrap script for new VM RRS feed

  • Question

  • Is there an option to bootstrap a (powershell) script / executable which gets launched after the creation of a new VM in Azure?
    Saturday, October 8, 2016 8:34 AM

Answers

  • You can use PowerShell DSC after a VM is deployed. Have a read of https://azure.microsoft.com/en-us/documentation/articles/automation-dsc-overview/


    • Proposed as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    • Marked as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    Saturday, October 8, 2016 9:46 AM
  • It may be worth it to also take a look at "Azure VM Extensions" and relevant documentation: 

    VM Extensions implement most of the critical functionality that you want to use with your VMs, including basic functionality like resetting passwords, configuring RDP, and many, many others. Because new extensions are added all the time, the number of possible features your VMs support in Azure continues to increase. By default, several basic VM extensions are installed when you create your VM from the Image Gallery, including IaaSDiagnostics (currently Windows VMs only),VMAccess, and BGInfo (also currently Windows only). However, not all extensions are implemented on both Windows and Linux at any specific time, due to the constant flow of feature updates and new extensions.

    More information here: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-extensions-features/

    • Proposed as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    • Marked as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    Saturday, October 8, 2016 12:01 PM

All replies

  • You can use PowerShell DSC after a VM is deployed. Have a read of https://azure.microsoft.com/en-us/documentation/articles/automation-dsc-overview/


    • Proposed as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    • Marked as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    Saturday, October 8, 2016 9:46 AM
  • It may be worth it to also take a look at "Azure VM Extensions" and relevant documentation: 

    VM Extensions implement most of the critical functionality that you want to use with your VMs, including basic functionality like resetting passwords, configuring RDP, and many, many others. Because new extensions are added all the time, the number of possible features your VMs support in Azure continues to increase. By default, several basic VM extensions are installed when you create your VM from the Image Gallery, including IaaSDiagnostics (currently Windows VMs only),VMAccess, and BGInfo (also currently Windows only). However, not all extensions are implemented on both Windows and Linux at any specific time, due to the constant flow of feature updates and new extensions.

    More information here: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-extensions-features/

    • Proposed as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    • Marked as answer by Sapna Girish Saturday, October 15, 2016 3:28 PM
    Saturday, October 8, 2016 12:01 PM
  • Thanks Nick & Thomas, will have a look at the extensions e.g. the CustomScriptExtension or DSC.

    Cheer M.

    Monday, October 10, 2016 10:53 PM