Publishing our ASP.NET Core backend to Azure
In this section, we are going to deploy our database and backend API to Azure using Visual Studio. We will create publish profiles for deployment to a production environment as well as a staging environment. During the process of creating the profiles, we will create the required Azure app services and SQL databases. At the end of this section, we will have two profiles that we can use to quickly deploy to our staging and production environments.
Publishing to production
Let's carry out the following steps to create a production deployment profile and use it to deploy our backend to production:
- In Solution Explorer, right-click on the QandA project and select Publish....
- The Publish dialog opens, which asks us to choose a publish target. Choose Azure and click Next, as illustrated in the following screenshot:
- We are then asked which service we want to deploy...