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.
Click on the arrows to vote for the correct answer
A. B. C. D. E.DE
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-dscTo automate the deployment of a virtual machine scale set (VMSS) that uses the Windows Server 2016 Datacenter image and ensure that the scale set virtual machines have web server components installed, you can perform the following two actions:
You can upload a PowerShell or Desired State Configuration (DSC) script that installs the web server components on the virtual machines of the VMSS. You can then use the Azure PowerShell or Azure CLI to run the script when provisioning the VMSS instances. This will ensure that the web server components are installed on all the virtual machines of the VMSS.
You can modify the VMSS extensionProfile section of the Azure Resource Manager template to add a custom script extension that installs the web server components. The custom script extension can be a PowerShell or shell script that installs the web server components on the virtual machines of the VMSS. The custom script extension can be specified in the VMSS extensionProfile section of the Azure Resource Manager template to ensure that it is run when the VMSS instances are provisioned.
Therefore, the correct answers are A and D.
Option B is not necessary in this scenario because creating an automation account is not required to install web server components on the virtual machines of the VMSS.
Option C is also not relevant in this scenario because Azure policies are used to enforce rules and effects over resources, such as the required tags, allowed locations, or required resource types, but not to install web server components.
Option E is not the correct answer as creating a new VMSS in the Azure portal will not ensure that the web server components are installed on the virtual machines of the VMSS.