Publishing to Staging
Learn to deploy our backend to Azure staging anvironment
We'll cover the following...
Deploy the backend to Azure staging environment
Let's carry out the following steps to deploy our backend to a staging environment:
In “Solution Explorer”, right-click the “QandA” project and select “Publish...”. This will open the publish screen, where we will see our production publish profile.
Select the “New” option to create a new publish profile.
Select “Azure” as the target and click “Next.”
Select “Azure App Service (Windows)” as the specific target and click “Next”.
Click the green plus “Create new” icon to add a new Azure app service.
In the dialog that appears, enter the name for the new app service. This is going to be the service to host our backend in the staging environment. Note down the name you choose because we'll eventually reference this in the frontend project. Use the same resource group and hosting plan as we used for the production environment. Click “Create” to create the app service in Azure—this will take a few minutes.
When the “App Service” dialog has closed, we are taken back to the “Publish” dialog. Make sure our staging app service is selected in the “App Service Instances” list, and click “Next”.
Skip the “API Management” step by checking the “Skip this step” ...