Create a Release Pipeline for Azure Resource Manager Templates | AZ-400 Exam Answer

Create a Release Pipeline for Azure Resource Manager Templates

Question

You have a project in Azure DevOps. You have an Azure Resource Group deployment project in Microsoft Visual Studio that is checked in to the Azure DevOps project.

You need to create a release pipeline that will deploy resources by using Azure Resource Manager templates. The solution must minimize administrative effort.

Which task type should you include in the solution?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

There are two different ways to deploy templates to Azure DevOps Services. Both methods provide the same results, so choose the one that best fits your workflow.

1. Add a single step to your build pipeline that runs the PowerShell script that's included in the Azure Resource Group deployment project (Deploy-

AzureResourceGroup.ps1). The script copies artifacts and then deploys the template.

2. Add multiple Azure DevOps Services build steps, each one performing a stage task.

The first option has the advantage of using the same script used by developers in Visual Studio and providing consistency throughout the lifecycle.

https://docs.microsoft.com/en-us/azure/vs-azure-tools-resource-groups-ci-in-vsts

The correct answer is C. Azure PowerShell.

To deploy resources using Azure Resource Manager templates, you need to create an Azure Resource Group deployment project in Visual Studio, which will allow you to define the resources you want to deploy, their configuration, and the dependencies between them.

Once you have created this project and checked it in to Azure DevOps, you need to create a release pipeline that will automate the deployment process. A release pipeline is a series of tasks that will execute sequentially to deploy the resources defined in the deployment project.

There are different types of tasks you can include in a release pipeline, but in this case, the best option is to use the Azure PowerShell task type. Azure PowerShell is a command-line interface that allows you to manage Azure resources using PowerShell scripts. By using this task type, you can define a script that will deploy the resources using the Azure Resource Manager templates.

Using Azure PowerShell as a task type has several advantages. First, it allows you to automate the deployment process, minimizing the need for manual intervention. Second, it provides a flexible and powerful way to define the deployment script, allowing you to use advanced PowerShell features to customize the deployment process. Finally, it integrates seamlessly with Azure DevOps, allowing you to manage the deployment pipeline and track the progress of each deployment.

In summary, the correct task type to use when creating a release pipeline to deploy resources using Azure Resource Manager templates is Azure PowerShell.