In this section, we are going to deploy our database and backend API to Azure using Visual Studio. We are going to deploy to a production environment first and then a staging environment.
Publishing our ASP.NET Core backend to Azure
Publishing to production
Let's carry out the following steps to deploy our backend to production:
- In Solution Explorer, right-click on the QandA project and select Publish....
- The Publish screen opens. Select the Publish section and then click the Start button:
![](https://static.packt-cdn.com/products/9781789950229/graphics/assets/f930c0e6-09c0-483c-94df-a093507c038d.png)
- We are then prompted to choose a publish target. Choose Create New and click the Create Profile button:
![](https://static.packt-cdn.com/products/9781789950229/graphics/assets/af7aa1d0-c52b-41aa-b198-fd39991e4cea.png)
- The next step is to specify our Microsoft account and name the production app service. Note down the name you choose because...