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
C
5
0
yep
1
0
True. shd be c. the explanation https://technet.microsoft.com/en-us/library/cc766314(v=ws.10).aspx
is given for Windows. not Azure.
1
0
it says when u deploy new machine only so B is correct.
0
2
When you provision a new VM you can set the Custom Extension to run powershell scripts when the vm starts
0
0
C
1
0
I think C too. THis is not windows test, this is Azure. So this should be done the azure way.
1
0
C
1
0
VN?
1
0
C. – The Azure way.. not windows way
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows
0
0