Deploying an application using Web Apps

In Visual Studio 2017, click File | New | Project. Choose the project to develop an ASP.NET Core application. Define a name for your application and indicate where the project will be stored, then press OK to continue, as show in Figure.

N?o foi fornecido texto alternativo para esta imagem

We now have a series of choices to make. You can opt to use a template for the creation of your app. In this case, we chose the Web Application template for illustration purposes. Also, note that you select the Enable Docker Support option, which will enable support for using the Docker container, either to be used on the Windows operating system or Linux, as these operating systems will act as the container host. Another important setting is the Authentication option.

When you click the Change Authentication button, you can choose whether your application can authenticate users by using Active Directory, Azure Active Directory, or Office 365, for example. In this example, we chose the No authentication option, which is the authentication standard. If necessary, we can change it later, as show in Figure:

N?o foi fornecido texto alternativo para esta imagem

After the project is created, you can start activities related to the development of your application. To publish the Azure application, simply right click on the application name and choose Publish, as show in Figure:

N?o foi fornecido texto alternativo para esta imagem

You will see a dialog box where you can choose the destination of the application's publication. We chose the App Service option to illustrate this process. Select the Create New option.

You then need to log in to Azure with your credentials. Then, you can define the App Name, the Subscription, the Resource Group and associate the Hosting Plan that we created in the previous section in Azure Portal for the application. In the Application Insights option, we chose to leave the default option, which is None, because we'll look at this in more detail later on in this chapter. After this, click the Create button to continue with the publishing process, as show in Figure:

N?o foi fornecido texto alternativo para esta imagem

Before completing the Azure publishing process, you will be asked to indicate the URL, the resource group, and the configuration method, which can be either Release or Debug. Press the Publish button to complete this process, as show in Figure:

N?o foi fornecido texto alternativo para esta imagem

The expected result of this process should be similar to that shown in the following screenshot. This indicates that the publishing process of your application was successful, as shown in Figure:

N?o foi fornecido texto alternativo para esta imagem

Ready, mission accomplished, application published. See you in the next article.

Strong hug to all.

要查看或添加评论,请登录

Marcondes Alexandre的更多文章

社区洞察

其他会员也浏览了