Deploying a Virtual Machine Scale Set with Web Server Components - AZ-300 Exam Question

Automating Deployment of Virtual Machine Scale Set with Web Server Components

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.

CE

https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template

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

  1. Upload a configuration script: You can upload a PowerShell script or a Desired State Configuration (DSC) script to configure the VMs in the scale set. The script can install the necessary web server components on the VMs. You can upload the script to Azure Storage or GitHub and reference it in the VMSS deployment template.

  2. Modify the extensionProfile section of the Azure Resource Manager template: You can modify the extensionProfile section of the VMSS deployment template to specify the extension that installs the web server components on the VMs. For example, you can use the CustomScriptExtension or the DSC extension to execute the configuration script uploaded in step 1.

Therefore, the correct answers are A and E.

Creating an automation account (B) is not necessary for this scenario, but it can be useful if you plan to use Azure Automation to manage and automate your Azure resources.

Creating a new VMSS (C) is not relevant to the task of installing web server components on the VMs.

Creating an Azure policy (D) is not necessary for this scenario, as policies are used to enforce rules and standards for resources in your Azure environment, and do not directly affect the deployment of VMSSs.