Valid AZ-104 Dumps shared by EduDump.com for Helping Passing AZ-104 Exam! EduDump.com now offer the newest AZ-104 exam dumps, the EduDump.com AZ-104 exam questions have been updated and answers have been corrected get the newest EduDump.com AZ-104 dumps with Test Engine here:
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 available on all the virtual machines after they are deployed. What should you use?
Correct Answer: B
When deploying Azure Virtual Machine Scale Sets (VMSS) using an Azure Resource Manager (ARM) template, you can automatically install and configure applications or services (like NGINX) on the virtual machines using the Azure Custom Script Extension. According to the Microsoft Azure Administrator documentation, the Custom Script Extension is used to download and execute scripts on Azure virtual machines after deployment. It is ideal for configuration management, application installation, and post-deployment software setup. The extension can execute PowerShell or Bash scripts stored in Azure Storage or GitHub repositories. When used with an ARM template, you define the extension in the template's "resources" section under "type": "Microsoft.Compute/virtualMachines/extensions" or "Microsoft.Compute/virtualMachineScaleSets /extensions". Microsoft's official documentation notes: "The Custom Script Extension for Windows and Linux downloads and executes scripts on Azure virtual machines. This extension is useful for post-deployment configuration, software installation, or any other configuration or management tasks." In this case, using Azure Custom Script Extension allows automatic installation of NGINX on all VM instances as soon as they are created in the scale set - satisfying the requirement that NGINX is available immediately after deployment. Other options do not fit: * Application Insights is used for monitoring, not configuration. * Publish-AzVMDscConfiguration and New-AzConfigurationAssignment are used for Desired State Configuration (DSC), not lightweight application installation like NGINX. Hence, the only verified and cost-efficient solution is Azure Custom Script Extension.