> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure POC Infra Setup

This guide creates an Azure Kubernetes Service (AKS) cluster for a proof of concept (POC). The user pool matches the worker node specification in [Testing Environment Deployment](https://enterprise-docs.dify.ai/en/3.13.x/deploy/test-production/testing-deployment.md).

> [!NOTE]
>
> This guide covers only the AKS cluster. Prepare the container registry, persistent storage, PostgreSQL, Redis, and Qdrant separately according to the requirements in [Testing Environment Deployment](https://enterprise-docs.dify.ai/en/3.13.x/deploy/test-production/testing-deployment.md), and prepare the domains listed in [Resources Checklist](https://enterprise-docs.dify.ai/en/3.13.x/deploy/resources-checklist.md).

## Requirements

* AKS
  * System Pool - 1 node - Standard\_DS2\_v2 (2 vcpus, 7 GiB memory)
  * User Pool - 1 node - Standard\_D4s\_v5 (4 vcpus, 16 GiB memory)
* [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)
* Helm 3.14+

## Define environment variables

```bash theme={null}
export RANDOM_ID="$(openssl rand -hex 3)"

export DIFY_RESOURCE_GROUP_NAME="LG-Dev"
export LOCATION="eastus2"

export DIFY_AKS_CLUSTER_NAME="difyakscluster$RANDOM_ID"
export DIFY_AKS_SYSTEM_VM_SIZE="Standard_DS2_v2"
export DIFY_AKS_USER_VM_SIZE="Standard_D4s_v5"
```

## Create System Pool

```bash theme={null}
az aks create \
    --name $DIFY_AKS_CLUSTER_NAME \
    --resource-group $DIFY_RESOURCE_GROUP_NAME \
    --node-count 1 \
    --node-vm-size $DIFY_AKS_SYSTEM_VM_SIZE \
    --os-sku Ubuntu \
    --nodepool-name systempool \
    --generate-ssh-keys
```

## Create User Pool

```bash theme={null}
az aks nodepool add \
    --resource-group $DIFY_RESOURCE_GROUP_NAME \
    --cluster-name $DIFY_AKS_CLUSTER_NAME \
    --name userpool \
    --node-count 1 \
    --node-vm-size $DIFY_AKS_USER_VM_SIZE \
    --os-sku Ubuntu \
    --mode User
```

## Get the credentials for the AKS cluster

```bash theme={null}
az aks get-credentials --resource-group $DIFY_RESOURCE_GROUP_NAME --name $DIFY_AKS_CLUSTER_NAME
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.