You plan to automate deployment of a virtual machine scale set using the Windows Server 2016 Datacenter image. You need the scale set instances to have web server components installed when provisioned. Which two actions should you perform?
Choose an answer
Tap an option to check your answer.
Correct answer: Upload a configuration script, Modify the extensionProfile section of the Azure Resource Manager template.
Why this is the answer
To automate the installation of web server components during the provisioning of a virtual machine scale set (VMSS), you need to use a custom script extension. This involves two key actions. First, you must upload a configuration script (e.g., a PowerShell script for Windows) that contains the commands to install the web server roles and features. Second, you need to modify the extensionProfile section of the Azure Resource Manager (ARM) template used to deploy the VMSS. This section defines the extensions that should be applied to the VMSS instances, including specifying the custom script extension and linking it to your uploaded configuration script. Creating an automation account is for broader automation tasks, not directly for VMSS instance provisioning. Creating an Azure Policy enforces standards but doesn't install software. Creating a new VMSS in the Azure portal is a manual deployment method, not an automated solution for component installation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed