Ensure Web Server Components are Installed for Windows Server 2016 Datacenter Virtual Machine Scale Set Deployment

Automating Deployment of Windows Server 2016 Datacenter Virtual Machine Scale Set

Question

You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image.

You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE Each correct selection is worth one point.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

AB

Virtual Machine Scale Sets can be used with the Azure Desired State Configuration (DSC) extension handler. Virtual machine scale sets provide a way to deploy and manage large numbers of virtual machines, and can elastically scale in and out in response to load. DSC is used to configure the VMs as they come online so they are running the production software.

https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-dsc

To automate the deployment of a virtual machine scale set (VMSS) that uses the Windows Server 2016 Datacenter image and ensure that the VMs have web server components installed, you should perform the following actions:

  1. Modify the extensionProfile section of the Azure Resource Manager template: To ensure that web server components are installed on VMs when they are provisioned, you can use an Azure VM extension. An extension is a component that installs and configures software on an Azure VM. To add an extension to the VMSS, you need to modify the extensionProfile section of the Azure Resource Manager template that defines the VMSS. You can use the Azure Portal or any other tool that can modify Azure Resource Manager templates, such as Visual Studio or Azure PowerShell. You can specify the extension and the configuration data for the extension in the template. For example, to install IIS on the VMs, you can use the CustomScript extension and provide a script that installs IIS.

  2. Upload a configuration script: To install web server components on the VMs, you need to upload a configuration script to the VMSS. The script can be a PowerShell script, a shell script, or any other script that can install and configure software on a Windows or Linux VM. The script should be stored in a storage account that is accessible from the VMSS. You can use the Azure Portal or any other tool that can upload files to Azure storage accounts, such as Azure Storage Explorer or AzCopy. After you upload the script, you need to reference it in the Azure Resource Manager template by providing the storage account name, container name, and file name.

Therefore, the correct actions to perform are:

A. Modify the extensionProfile section of the Azure Resource Manager template. E. Upload a configuration script.