PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the scripts are run automatical…

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?

PrepAway - Latest Free Exam Questions & Answers

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

5 Comments on “You need to ensure that the scripts are run automatical…

  1. jagudero says:

    Custom Script Extension for Windows

    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. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script extension integrates with Azure Resource Manager templates, and can also be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.

    https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows




    1



    0

Leave a Reply