Creating a Web App from Azure Command Line Interface

·

1 min read

Steps to create Web App

  • Open Azure Portal from Top click Azure Cloud Shell :

image.png

  • It will open the bash shell where we can be able to run CLI Commands.

Note : if your opening cloud shell first time it will ask you to create storage account.

image.png

  • Now run the below command to clone the sample app repository

git clone github.com/Azure-Samples/html-docs-hello-wo..

image.png

  • Go to that directory from cd command

cd html-docs-hello-world

image.png

  • Create a web app with the below command :

az webapp up --location westus --name maniwebappdemo --html

image.png

  • Now let’s check whether webapp is up and running or not from below url.

maniwebappdemo.azurewebsites.net

image.png

  • Now we can see webapp is up and running. Now we have to delete the app so that we don’t get cost any more use the below command to do that.

    az group delete --name [resource_group_name]

image.png