AZ-104 · Question #745
You plan to deploy several Azure virtual machines that will run Windows Server 2022 in a virtual machine scale set by using an Azure Resource Manager template. You need to ensure that NGINX is…
The correct answer is A. Azure Custom Script Extension. To install NGINX on Azure virtual machines in a scale set after deployment using an ARM template, the Azure Custom Script Extension should be used.
Question
Options
- AAzure Custom Script Extension
- BDeployment Center in Azure App Service
- CMicrosoft Entra Application Proxy
- Dthe Publish-AzVMDscConfiguration cmdlet
How the community answered
(16 responses)- A75% (12)
- B6% (1)
- C6% (1)
- D13% (2)
Why each option
To install NGINX on Azure virtual machines in a scale set after deployment using an ARM template, the Azure Custom Script Extension should be used.
The Azure Custom Script Extension allows you to download and execute scripts, such as a script to install NGINX, on Azure virtual machines. When incorporated into an ARM template for a scale set, this extension ensures the script runs automatically on all deployed instances.
Deployment Center in Azure App Service is used for deploying applications to Azure App Service, a PaaS offering, not for configuring software on Azure virtual machines.
Microsoft Entra Application Proxy provides secure remote access to on-premises web applications and is unrelated to post-deployment software installation on virtual machines.
The `Publish-AzVMDscConfiguration` cmdlet publishes a Desired State Configuration (DSC) script, but it is not the mechanism used within an ARM template to execute configuration on VM instances; a DSC Extension would be used for execution, or more simply, the Custom Script Extension.
Concept tested: Post-deployment VM configuration using Custom Script Extension
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows
Community Discussion
No community discussion yet for this question.