Publishing to Staging

Learn to deploy our backend to Azure staging anvironment

Deploy the backend to Azure staging environment

Let's carry out the following steps to deploy our backend to a staging environment:

  1. 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.

  2. Select the “New” option to create a new publish profile.

  3. Select “Azure” as the target and click “Next.”

Press + to interact
Selecting Azure as the publish target
Selecting Azure as the publish target
  1. Select “Azure App Service (Windows)” as the specific target and click “Next”.

Press + to interact
Selecting Azure App Service as the publish specific target
Selecting Azure App Service as the publish specific target
  1. Click the green plus “Create new” icon to add a new Azure app service.

Press + to interact
Selecting or creating a new app service
Selecting or creating a new app service
  1. 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.

Press + to interact
Creating the app service
Creating the app service
  1. 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”.

Press + to interact
Selecting the app service to deploy to
Selecting the app service to deploy to
  1. Skip the “API Management” step by checking the “Skip this step” ...