Deploying Virtual Machine Scale Sets with Web Server Components - Exam AZ-303

Automating Deployment of Virtual Machine Scale Sets 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.

CD

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 with web server components installed, you can perform the following two actions:

A. Upload a configuration script: To install the web server components on the virtual machine scale set instances, you can create a PowerShell or Shell script that installs the web server components, and then upload it to an accessible location, such as a storage account or a GitHub repository. Once the script is uploaded, you can reference it in the Azure Resource Manager template.

C. Modify the extensionProfile section of the Azure Resource Manager template: To ensure that the configuration script is run when the virtual machine scale set instances are provisioned, you can modify the extensionProfile section of the Azure Resource Manager template. The extensionProfile section is used to define the extensions that are installed on the virtual machines in the scale set. You can add a custom extension that references the configuration script and specifies the necessary arguments.

Therefore, the correct answers are A and C.

B. Create an Azure policy: Azure Policy is a service that allows you to create, assign, and manage policies that enforce rules and effects over your resources. It does not help in automating the deployment of a virtual machine scale set with web server components installed.

D. Create a new virtual machine scale set in the Azure portal: Creating a new virtual machine scale set in the Azure portal does not ensure that the web server components are installed on the virtual machine instances.

E. Create an automation account: Azure Automation is a service that allows you to automate the deployment, configuration, and management of resources in your Azure environment. While it can help in automating tasks, it is not necessary for installing web server components on a virtual machine scale set.