DEV Community

Cover image for Effective Web App Deployment With ARM Template And Azure CLI
Romanus Onyekwere
Romanus Onyekwere

Posted on • Edited on

Effective Web App Deployment With ARM Template And Azure CLI

Table of contents

Introduction

Installation steps;

  • Deploy ARM Template with Azure CLI
  • Open the Visual studio code portal
  • Download and instal the Visual Studio Code
  • Create an Azure account
  • Install Azure CLI on your device

Introduction
In this tutorial, we are going to explain very clearly how to deploy a web app with the Azure Resource Manager (ARM)template and Azure Command Line interphase (CLI)
ARM template is a set of instructions that has the following abilities;
(a) It describes what kind of resources (like web apps, databases etc) should be created in Azure.
(b) It describes how resources should be configured in Azurw
(c) It also describes where resources should be placed in Azure

This could also be illustrated with someone who is building a house. The ARM template is the plan that tells the builders (Azure) what rooms (resources)are needed, how many windows (configuration) and where the house should be built (location)

The Azure command line interphase (CLI) is a tool for controlling and managing Azure resources by typing simple commands on the terminal prompt.

The CLI is like a *remote control * for Azure. You can press buttons to create an update and manage resources like your web app without needing the Azure website

Deploy ARM Template with Azure CLI
Locate the ARM template file already prepared and downloaded in your folder

Image description

Download and instal the Visual Studio Code
Make sure you have the most recent Visual Studio Code downloaded and installed on your computer. Incase you did not have one, get the recent version from the Visual Studio Code Official Website
Image description

On the VSCode, create a folder for the template and call it template.jason.
Copy the json file from here
To copy the json file, scrow down to review template and click on the copy icon
Image description

With the copied file, return to your VSCode and create a new folder with the name template.jason and save.
Paste the dopied json file on the template window
Image description
Image description
Image description
Go through the json ARM template file and ensure that all the configuration keys are complete and none is interupted.
It also means that the ARM template is prepared.
It also suggest that you have logged in to Azure and your subscrition is set.
Image description

Image description

Open the terminal and select python and prompt opens
Input az login to and you will be prompted to login to your Azure account.
Click Continue

Unfortunatly, it could not continue and I have being directed back as many times as I tried

Top comments (0)