You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine scale set by using an Azure Resource Manager template.
You need to ensure that NGINX is available on all the virtual machines after they are deployed.
What should you use?
Click on the arrows to vote for the correct answer
A. B. C. D.C
Note:
There are several versions of this question in the exam. The question has two correct answers:
1. a Desired State Configuration (DSC) extension
2. Azure Custom Script Extension
The question can have other incorrect answer options, including the following:
-> Deployment Center in Azure App Service
-> a Microsoft Intune device configuration profile
https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configurationTo ensure that NGINX is available on all the virtual machines after they are deployed in a virtual machine scale set, you should use the Azure Custom Script Extension.
Option A, the Publish-AzVMDscConfiguration cmdlet, is used to publish PowerShell Desired State Configuration (DSC) resources to an Azure Automation account, which is used to manage configuration settings of virtual machines. However, it does not address the requirement of installing NGINX.
Option B, Azure Application Insights, is a tool for monitoring and analyzing application performance and usage. While it can help you monitor the performance of your virtual machines, it does not address the requirement of installing NGINX.
Option C, Azure Custom Script Extension, allows you to run custom scripts on a virtual machine after it has been deployed. You can use this extension to install NGINX on all virtual machines in a virtual machine scale set. You can create a script that installs NGINX, upload it to Azure Storage, and then use the Azure Custom Script Extension to run the script on all virtual machines in the scale set.
Option D, the New-AzConfigurationAssignement cmdlet, is used to create a new Azure Policy assignment. Azure Policy is used to enforce organizational standards and compliance in Azure resources. It does not address the requirement of installing NGINX.
Therefore, the correct answer is C, Azure Custom Script Extension.