This topic describes how to set up an Episerver Commerce site to run on Azure Web Sites. In this scenario, a Commerce Core site is installed, and you can apply most steps to sites via the Visual Studio extension and installing NuGet packages. See Azure Web Apps for information about Azure.
Each deployed application and module is designed for cloud use.
Setting up a cloud website
Like an Episerver CMS website on Azure, you can run the Commerce website on an Azure Web Site environment with multiple instances. The website instances share the same Azure SQL database, and the BLOB storage in Azure is used to store the file binary data. Load balancing is applied, and the Azure Service Bus manages events among the CMS websites.
Follow these steps to create an Episerver Commerce website in an Azure Apps environment.
Create a site.
In Visual Studio, select Tools > Extensions and Updates menu. In the dialog, select Online, search for EPiServer CMS Visual Studio Extension then install the extension. See Visual Studio Gallery for information about the Episerver Extension.
Create a new project by selecting New > Project > Visual C#, then EPiServer > EPiServer Web Site. In the dialog select Empty anduncheck Add EPiServer Search to use search functionality when running in Azure. See "Search in Azure" in Deploying to Azure Web Apps.
Install the latest version of the EPiServer.CommerceNuGet package.
Install the EPiServer.Commerce.AzureNuGet package to the project.
Add the cloud license to the website. This is used and activated later, when deploying the website to Azure.
Go to Administration > System Settings > Search Index.
Click Rebuild Index. The catalog index is restored in your storage.
Note: If you are using LuceneSearchProvider as the default search provider, complete the following additional steps.
Open Mediachase.Search.config, in SearchProviders, and set the defaultProvider attribute to LuceneAzureSearchProvider.
Set your connectionStringName so that the provider has the name="LuceneAzureSearchProvider" matching with your Azure Storage name (in connectionStrings.config) and storage="<container you want to index>".
Set the connectionStringName in Indexers tab to match your Azure Storage name (in connectionStrings.config) and basePath is "<container where you want to store build info>".
The following example shows search config in Mediachase.Search.config, defined for using Lucene on Azure.