---
title: Enabling web farms on Azure Web Apps
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Azure Web Apps (renamed from Azure Websites, [see details](http://azure.microsoft.com/en-us/documentation/articles/app-service-changes-existing-services/)) allow you to scale the computing power allocated for your web app on Microsoft Azure. This feature allows you to increase performance and throughput for your web app. See [How to scale Web Apps](http://azure.microsoft.com/en-us/documentation/articles/web-sites-scale/) article for details.

For this functionality to work in Kentico, you need to enable and configure the **Web farm module** in your Kentico web app.

> **Info:** We only support this functionality for [web hosting plans](http://azure.microsoft.com/en-us/documentation/articles/web-sites-web-hosting-plan-overview/) with a **Basic** or higher pricing tier.

After you create an Azure Web App with a Kentico application and deploy it using Visual studio (see [Microsoft Azure Web Apps](https://docs.kentico.com/k82/running-kentico-on-microsoft-azure/microsoft-azure-web-apps.md)), enable and configure web farms in the Kentico system:

1. If you have already scaled your web app to 2 or more instances, scale it back down to 1 instance:
   1. Open [Windows Azure Management Portal](https://manage.windowsazure.com) and select your web app.
   2. Switch to the **Scale** tab.
   3. Set the **Instances count** to 1.
   4. Click **Save** in the bottom panel.
2. Open the Kentico administration interface of your website.
3. Open the **Settings** application and open the **Versioning & Synchronization -> Web farm** category.
4. Make sure that the following check-boxes are selected:
   - **Enable web farm** - enables the web farm functionality.
   - **Use web farm database updater** - enables the database updater web farm synchronization mechanism which uses the database for notifying web farm servers about changes. See [Web farm synchronization mechanisms](https://docs.kentico.com/k82/configuring-kentico/optimizing-website-performance/setting-up-web-farms/web-farm-synchronization-mechanisms.md) for details.
   - **Generate servers dynamically** - allows the system to generate web farm servers dynamically according to the allocated computing instances.
   - **Delete generated servers on application end** - this settings ensures that the system does not generate more web farm servers than needed.

The system is now prepared for increasing and decreasing computing instances (you can scale your application through the portal on the **Scale** tab) and will generate web farm servers and synchronization tasks automatically.
