PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the scripts are executed on new VMs

You develop a set of Power Shell scripts that will run when you deploy new virtual machines
(VMs).
You need to ensure that the scripts are executed on new VMs. You want to achieve this goal
by using the least amount of administrative effort.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a new GPO to execute the scripts as a logon script.

B.
Create a SetupComplete.cmd batch file to call the scripts after the VM starts.

C.
Create a new virtual hard disk (VHD) that contains the scripts.

D.
Load the scripts to a common file share accessible by the VMs.

E.
Set the VMs to execute a custom script extension.

7 Comments on “You need to ensure that the scripts are executed on new VMs

  1. joni says:

    I think its E

    After you deploy a Virtual Machine you typically need to make some changes before it’s ready to use. This is
    something you can do manually or you could use Remote PowerShell to automate the configuration of your
    VM after deployment for example.
    But now there’s a third alternative available allowing you customize your VM: the CustomScript extension.
    This CustomScript extension is executed by the VM Agent and it’s very straightforward: you specify which files
    it needs to download from your storage account and which file it needs to execute. You can even specify
    arguments that need to be passed to the script. The only requirement is that you execute a .ps1 file.
    Reference: Customizing your Microsoft Azure Virtual Machines with the new CustomScript extension




    0



    0
  2. pakits says:

    “E” is answer

    Reason

    In a nutshell, Custom Script Extension can automatically download scripts and files from Azure Storage and launch a PowerShell script on the VM which in turn can install additional software components. And just like with any other VM Extension, this can be added during VM creation or after the VM has been running. Sounds simple, yet very useful

    http://azure.microsoft.com/blog/2014/04/24/automating-vm-customization-tasks-using-custom-script-extension/




    0



    0

Leave a Reply