exam questions

Exam 70-533 All Questions

View all questions & answers for the 70-533 exam

Exam 70-533 topic 1 question 56 discussion

Actual exam question from Microsoft's 70-533
Question #: 56
Topic #: 1
[All 70-533 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️
After you deploy a Virtual Machine you typically need to make some changes before its 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 theres a third alternative available allowing you customize your VM: the CustomScriptextension.
This CustomScript extension is executed by the VM Agent and its 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.
References: http://azure.microsoft.com/blog/2014/04/24/automating-vm-customization-tasks-using-custom-script-extension/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...