Hosting an ASP.NET Core application on Azure

Deploying an ASP.NET Web Application on Azure is simple. You can either create an application through the Azure portal, or create a web application from Visual Studio and publish it to Azure using Visual Studio or .NET CLI (command-line interface).

Suppose we have an ASP.NET Core application in place and we want to deploy that application on Azure. To do so, we will just right-click on the web application project from Visual Studio, and choose Publish. A dialog will open, and ask you to select the target to be published, as shown in the following screenshot:

Once you select Microsoft Azure App Services, it will give options to select your Azure subscription, and choose any of the existing running App Services. As this is a new web application, we will choose New, as shown in this screenshot:

From the Create App Service page, specify the unique Web App Name, select Subscription, select existing Resource Group or create a new one, and finally, select App Service Plan:

App Service Plan gives an option to select the Location where the application will be deployed and the Size of the machine that shows the number of processor core(s) and RAM:

Finally, it shows up a dialog containing the server name, Destination URL, and other details, as shown in the following screenshot:

Azure has also introduced a template for Web App on Linux, which can create and deploy your ASP.NET Core application on Linux running in a Docker container. While creating, you can specify the App name, Subscription, Resource Group, and container, and select the .NET Core runtime stack to create an ASP.NET Core application:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.180.43