Deploying your .NET 5 Site to Azure

You can deploy your .NET 5.0 starter via Visual Studio Code or Visual Studio 2019.

Visual Studio Code

Visual Studio 2019

Visual Studio Code

  1. Run the code locally to ensure everything is working as expected.
  2. Install Azure Resources App and Azure App Services App.
  3. Generate a publish folder to deploy by running the following command in the Agility.NET5.Starter directory:
    dotnet publish -c Release -o ./publish
    mceclip0.png
  4. Deploy publish folder to App Service by right-clicking on the folder and selecting 'Deploy to Web App...' and following the prompts to select 'Subscription' and 'Web App'.mceclip1.png

Visual Studio 2019

  1. Right-click on Agility.NET5.Starter and select 'publish'.
    mceclip2.png
  2. Select Azure:mceclip3.png
  3. Select Azure App Service (Windows).
    mceclip4.png
  4. Select Subscription and App Service.
    mceclip5.png
  5. After the profile is created hit 'Publish'.
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.