AZ-104 · Question #686
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 A. 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
- Aa Desired State Configuration (DSC) extension
- Ba Microsoft Intune device configuration profile
- Cthe Publish-AzVMDscConfiguration cmdlet
- Dthe New-AzConfigurationAssignment cmdlet
How the community answered
(57 responses)- A81% (46)
- B2% (1)
- C11% (6)
- D7% (4)
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.
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.
Microsoft Intune is a cloud-based service for mobile device management (MDM) and mobile application management (MAM), primarily for end-user devices, not for configuring server-side software on Azure VMs in a scale set.
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.
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.
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.