AZ-104 · Question #682
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…
The correct answer is D. a Desired State Configuration (DSC) extension. To ensure NGINX is installed on Azure virtual machines deployed as part of a virtual machine scale set via an ARM template, a Desired State Configuration (DSC) extension is the appropriate tool.
Question
Options
- Athe New-AzConfigurationAssignment cmdlet
- BAzure Application Insights
- Cthe Publish-AzVMDscConfiguration cmdlet
- Da Desired State Configuration (DSC) extension
How the community answered
(39 responses)- A18% (7)
- B5% (2)
- C5% (2)
- D72% (28)
Why each option
To ensure NGINX is installed on Azure virtual machines deployed as part of a virtual machine scale set via an ARM template, a Desired State Configuration (DSC) extension is the appropriate tool.
The New-AzConfigurationAssignment cmdlet is used for Azure Policy guest configuration assignments, which are typically for auditing or enforcing compliance rather than initial software deployment for a VMSS via an ARM template.
Azure Application Insights is a service for application performance monitoring and diagnostics, not for deploying or configuring software on virtual machines.
The Publish-AzVMDscConfiguration cmdlet uploads a DSC configuration to Azure Storage, which is a preparatory step, but it does not actually apply the configuration to the virtual machines itself.
An Azure Desired State Configuration (DSC) extension can be included in an ARM template for a virtual machine scale set to automatically install and configure software like NGINX on all instances after they are deployed.
Concept tested: VM Scale Set configuration using DSC extension
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-extension
Topics
Community Discussion
No community discussion yet for this question.