Your company builds a multi-tier web application.
You use Azure DevOps and host the production application on Azure virtual machines.
Your team prepares an Azure Resource Manager template of the virtual machine that you will use to test new features.
You need to create a staging environment in Azure that meets the following requirements:
-> Minimizes the cost of Azure hosting
-> Provisions the virtual machines automatically
-> Uses the custom Azure Resource Manager template to provision the virtual machines
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.D
You can use the Azure DevTest Labs Tasks extension that's installed in Azure DevOps to easily integrate your CI/CD build-and-release pipeline with Azure
DevTest Labs. The extension installs three tasks:
-> Create a VM
-> Create a custom image from a VM
-> Delete a VM
The process makes it easy to, for example, quickly deploy a "golden image" for a specific test task and then delete it when the test is finished.
https://docs.microsoft.com/en-us/azure/lab-services/devtest-lab-integrate-ci-cd-vstsThe best option for creating a staging environment in Azure that meets the requirements of minimizing cost, provisioning virtual machines automatically, and using a custom Azure Resource Manager template to provision the virtual machines is option D: In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.
Explanation:
Azure DevTest Labs is a service in Azure that enables developers to quickly create environments for testing new features and applications, without incurring the full cost of production environments. Azure DevTest Labs provides the ability to create and manage lab environments that can be used for testing, training, and development purposes.
Option A is not the best choice because it requires manual creation and deletion of virtual machines using Azure CLI commands, which can be time-consuming and prone to errors.
Option B is not the best choice because Azure Cloud Services are not the best option for deploying a multi-tier web application, especially if it is already hosted on Azure virtual machines.
Option C is not the best choice because it requires manual creation and deletion of virtual machines using Azure PowerShell commands, which can be time-consuming and prone to errors.
Option D is the best choice because it enables the creation and deletion of virtual machines in Azure DevTest Labs using a release pipeline in Azure DevOps. This option provides the ability to automate the process of creating and deleting virtual machines using the custom Azure Resource Manager template, which helps to minimize the cost of hosting the staging environment.
In summary, option D is the best choice because it provides the ability to create and manage lab environments using Azure DevTest Labs, which helps to minimize the cost of hosting the staging environment, provision virtual machines automatically, and use a custom Azure Resource Manager template to provision the virtual machines.