AZ-104 · Question #636
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 availab
The correct answer is A. a Desired State Configuration (DSC) extension. Azure virtual machine extensions are small packages that run post-deployment configuration and automation on Azure virtual machines. In the following example, the Azure CLI is used to deploy a custom script extension to an existing virtual machine, which installs a Nginx webserve
Question
Options
- Aa Desired State Configuration (DSC) extension
- Bthe New-AzConfigurationAssignment cmdlet
- CAzure Application Insights
- Da Microsoft Endpoint Manager device configuration profile
How the community answered
(33 responses)- A85% (28)
- B9% (3)
- C3% (1)
- D3% (1)
Explanation
Azure virtual machine extensions are small packages that run post-deployment configuration and automation on Azure virtual machines. In the following example, the Azure CLI is used to deploy a custom script extension to an existing virtual machine, which installs a Nginx webserver. az vm extension set \ --resource-group myResourceGroup \ --vm-name myVM --name customScript \ --publisher Microsoft.Azure.Extensions \ --settings '{"commandToExecute": "apt-get install -y nginx"} 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: - the Publish-AzVMDscConfiguration cmdlet - Azure Application Insights https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration
Topics
Community Discussion
No community discussion yet for this question.