Create Web Role

In this article we can explore how to create a Web Role in Visual Studio 2017.

Web Role

Web Role is for hosting your application through IIS.

Web Role is intended for Frontend UI applications.

Visual Studio 2017

Open Visual Studio 2017 and go to New Project > Cloud section.

image

In the next page of the wizard, Choose Web Role.

image

Choose MVC as the ASP.NET application type.

image

Click OK to complete the wizard.

You will get the following code in HTML view.

image

Modify the Text and Your Web Role is ready!

image

In the next part we can see how to deploy the web role.

Summary

In this article we have explored creating a web role.