Exam4Training

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:

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.

Explanation: https://azure.microsoft.com/en-us/blog/automating-vm-customization-tasks-using-custom-script-extension/

Latest 70-535 Dumps Valid Version with 458 Q&As

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

Exit mobile version