You develop a set of PowerShell scripts that will run when you deploy new virtual machines (Vms).
You need to ensure that the scripts are run automatically when the VM is started.
What should you do?
A.
Load the scripts to a common file share accessible by the VMs.
B.
Create a SetupComplete.cmd batch file to call the scripts after the VM starts.
C.
Set the VNs to execute a custom extension.
D.
Create a new virtual hard disk (VHD) that contains the scripts.
Explanation:
https://technet.microsoft.com/en-us/library/cc766314(v=ws.10).aspx
I think that C has a typo, and should read:
C. Set the VMs to execute a custom extension. (Not VNs).
If I’m right, the answer is C.
I agree, should be C) execute a custom extension.
The Custom Script Extension downloads and executes scripts on Azure virtual machines. This extension is useful for post deployment configuration, software installation, or any other configuration / management task.
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/extensions-customscript
C