Azure App Service: Create Web App from Visual Studio

Create a new Project (File -> New Project) and select “Web Forms”. Please make sure that the “Host in the Cloud” checkbox is checked and you select “App Service” in the dropdown beneath the checkbox and click on OK button. (You might have to install Azure SDK).

Web Form

If you have already logged into your Azure Subscription, you will see a “Create App Service” window as shown below. Please provide a meaningful name for the new App Service select the Subscription, Resource group, and App service plan, and click on the “Create” button. If you haven’t logged in using your Azure Subscription, Visual Studio will prompt you to log into your account.

Create

That’s it, you have created a new Web Application in Visual Studio as well as a new App Service in your Azure subscription in just a couple of clicks.

Web Application

In Visual Studio, click on Cloud Explorer and expand the “Web Apps” section as shown below.

Cloud Explorer

You will see your newly created App Service Web App as shown below in the Visual Studio.

Visual Studio

Now, right-click the Web App and select “View in Browser” as shown in the below screen capture to view the application in the browser.

View in Browser

You will see something as shown below.

Web

In the next Article, we will see how to link an existing web application to an App Service.


Similar Articles