What should you do?

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?
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.

Answer: E

Explanation:

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 CustomScriptextension.

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.

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

Latest 70-533 Dumps Valid Version with 351 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments