Azure WebApp Publish From CLI or Powershell Directly

We can always go to the portal and manually create the app and publish it from Visual Studio. But sometimes, it is easier to do it using the CLI.

Step 1 Creating the WebApp

You should have the web application created.

Step-2 Setting up your application

Creating the web app. (If you already don’t have it)

Step-3 Publishing it

Create a deployment user and set the source for your web app.

Once you are here, you should get the git remote URL.

Add it to your local repo and push it as below.

Visit and see the results.

Web App Sample Running on Azure

Hope you have learned something new today! :)

--

--

Kamal Rathnayake

Lead Software Engineer with 6 years of experience in the industry. Writing for fun!