How to Deploy and Test an Arm Template using Azure CLI

To deploy an arm template using the Azure CLI, do the following:

New-AzResourceGroupDeployment -Name ValidateDeployment -ResourceGroupName *nameOfResourceGroup*  -TemplateFile *PathToArmTemplate* -TemplateParameterFile *PathToArmTemplateParams*

You can also test the deployment before you actually perform the operation. Use the following command to test the arm template deployment:

Test-AzResourceGroupDeployment -ResourceGroupName *nameOfResourceGroup*  -TemplateFile *PathToArmTemplate* -TemplateParameterFile *PathToArmTemplateParams*

If the command runs successfully, you can check the portal for your resources. Cheers

Comments

Popular posts from this blog

Configuring Any .NET 9.0 Program to Run in Docker: A Step-by-Step Guide

Understand .NET 9.0 Blazor Hosting Models

Understanding a Multi-Stage Dockerfile for .NET 9 Application