Publish to a Cloud Service (Azure example)

Posted by Larrem on January 05, 2024

Objectives

  1. Publish to a cloud service (Azure App Services example).
  2. Ensure local App_Data is NOT published.

Step 1: Ensure local App_Data is NOT published

  1. Refer to Orchard Core docs at https://github.com/OrchardCMS/OrchardCore/pull/4402
  2. Add the project's .csprog file

Step 2: Create a Publishing Profile

  1. Refer to this Azure doc at https://learn.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net70&pivots=development-environment-vs
  2. Ensure to choose the free hosting plan

Step 3: Publish

Step 4: Setup website using TheBlogTheme

Step 5: Add some test data


Reference

https://learn.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net70&pivots=development-environment-vs