Your company has a project in Azure DevOps for a new application. The application will be deployed to several Azure virtual machines that run Windows Server
2019.
You need to recommend a deployment strategy for the virtual machines. The strategy must meet the following requirements:
-> Ensure that the virtual machines maintain a consistent configuration.
-> Minimize administrative effort to configure the virtual machines.
What should you include in the recommendation?
Click on the arrows to vote for the correct answer
A. B. C. D.C
The Custom Script Extension 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. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script Extension integrates with Azure Resource Manager templates, and can be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.
Incorrect Answers:
B: YAML doesn't work with Azure pipeline deployment groups.
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windowsThe recommended deployment strategy for the virtual machines in this scenario is to use Azure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows, which is option A.
Azure Resource Manager (ARM) templates are JSON files that describe the infrastructure and configuration of Azure resources. By using ARM templates, you can create and deploy resources in a repeatable and consistent manner. With ARM templates, you can automate the deployment of virtual machines, storage accounts, virtual networks, and other Azure resources.
PowerShell Desired State Configuration (DSC) is a management platform in Windows that enables you to configure and manage servers, and ensures that the servers remain in the desired state. DSC allows you to define the configuration of a server as code, and then apply that configuration to the server. This can include settings for registry keys, services, files, and more.
By using ARM templates and DSC together, you can create a deployment pipeline that ensures that the virtual machines are deployed in a consistent configuration. The ARM templates define the infrastructure and configuration of the virtual machines, while the DSC extension ensures that the virtual machines remain in the desired state.
Option B, Deployment YAML and Azure pipeline deployment groups, is not the best choice for this scenario because it is designed for deploying applications to multiple environments, not for managing the configuration of virtual machines.
Option C, Azure Resource Manager templates and the Custom Script Extension for Windows, is not the best choice because the Custom Script Extension is designed to run scripts on virtual machines after they have been deployed, which could lead to inconsistent configurations.
Option D, Deployment YAML and Azure pipeline stage templates, is not the best choice because it is also designed for deploying applications, not for managing the configuration of virtual machines.