Skip to content

Deploy platform and storefront as a single Azure application

Step-by-step guide

  1. Deploy storefront from GitHub to Azure as it is described in Deploy from GitHub to Microsoft Cloud Azure. Use the following values on the first step of the wizard:
  2. Virto Commerce Manager Url: https://{{your-storefront-application-name}}
  3. Content Storage Connection String: provider=LocalStorage;rootPath=~/App_Data/cms-content Deploy storefront

  4. Open the Azure portal and add a new SQL Server and a new SQL database to the same resource group where the storefront application has been created. create database

  5. Open the database overview in the Azure portal, click Show database connection strings and copy ADO.NET connection string value.

  6. Download the latest precompiled release of the Virto Commerce Platform from GitHub to your local disk: 'C:\tmp\'.

  7. Open the Kudu debug console for the storefront Azure app service https://{{your-storefront-application-name}} and navigate to the 'D:\home\site\wwwroot'

  8. Drag and drop your local 'C:\tmp\' file to the right side of the 'D:\home\site\wwwroot' folder drag and drop platform zip

  9. Rename the 'VirtoCommerce.Platform.Web' folder to the 'platform' with the following command:

    mv VirtoCommerce.Platform.Web platform
    rename folder

  10. Open the storefront app service and click Application settings

  11. Add custom connection string 'CmsContentConnectionString' with value provider=LocalStorage;rootPath=~/../App_Data/cms-content to use shared CMS folder between manager and storefront

  12. Add custom connection string 'AssetsConnectionString' with value provider=LocalStorage;rootPath=~/App_Data/assets;publicUrl=http://{{your-storefront-application-url}}

  13. Add SQL connection string 'VirtoCommerce' with previously copied value. Change the server name, database name, user name and password with your values and make sure the MultipleActiveResultSets parameter is set to True:

    Server=tcp:{{your-db-server-name}},1433;Initial Catalog={{your-db-name}};Persist Security Info=False;User ID={{your-db-user}};Password={{your-db-password}};MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=False;Connection Timeout=300; connection strings

  14. Add new virtual application /admin with path site\wwwroot\platform

  15. Add new virtual directory /admin/assets with path site\wwwroot\platform\App_Data\assets admin application

  16. Click Save in the toolbar and navigate to the Virto Commerce Manager, which will have the following URL: https://{{your-storefront-application-url}}

Last update: June 18, 2020