hands-on lab

Working with Azure App Service using Azure CLI

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 185
Rating: 4.3/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Azure CLI is the command-line interface provided by the Azure team with a set of commands used to create and manage Azure resources. While working with Azure CLI, you will get hands-on experience with different types of actions to manage the resources.

Azure App Service is a fully-managed platform as a service (PaaS) for building, deploying, and scaling web, mobile, API, and even serverless apps.

In this lab, you will create, manage, and deploy web applications to Azure App Service programmatically using Azure CLI.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Understand and create App Service plans and App Services using Azure CLI
  • Understand and create the App Service Web Apps deployment slots using Azure CLI
  • Use Azure CLI commands to interact with Azure Web App resource
  • Deploy Web App using Zip package
  • Delete the Web App resources using Azure CLI

Intended Audience

  • Candidates for Azure Administrator Certification
  • Cloud Engineers
  • Cloud Architects
  • DevOps Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Azure Web App concepts
  • General software development principles

The following and labs can be used to fulfill the prerequisite:

Updates

October 5th, 2023 - Updated node version for web app creation

May 02nd, 2023 - Updated theia to enable autosave

May 11th, 2022 - Resolved issue regarding webapp deployment

Environment before

Environment after

Covered topics

Lab steps

Logging into Azure using Azure CLI
Creating an Azure App Service Plan using Azure CLI
Creating a Web App in Azure using Azure CLI
Creating a Staging Deployment Slot using Azure CLI
Deploying a Web App using Azure CLI
Deleting Azure Web App Resources using Azure CLI