> ## 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 基础设施设置

本指南用于为 POC（概念验证）创建 Azure Kubernetes Service（AKS）集群。用户池的节点规格与 [测试环境部署](https://enterprise-docs.dify.ai/zh/3.14.x/deploy/test-production/testing-deployment.md) 中的工作节点规格一致。

> [!NOTE]
>
> 本指南仅涵盖 AKS 集群的创建。容器镜像仓库、持久化存储、PostgreSQL、Redis 和 Qdrant 需按照 [测试环境部署](https://enterprise-docs.dify.ai/zh/3.14.x/deploy/test-production/testing-deployment.md) 中的要求另行准备，域名需按照 [资源清单](https://enterprise-docs.dify.ai/zh/3.14.x/deploy/resources-checklist.md) 准备。

## 要求

* AKS
  * 系统池 - 1 个节点 - Standard\_DS2\_v2 (2 个 vCPU，7 GiB 内存)
  * 用户池 - 1 个节点 - Standard\_D4s\_v5 (4 个 vCPU，16 GiB 内存)
* [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)
* Helm 3.14+

## 定义环境变量

```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"
```

## 创建系统池

```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
```

## 创建用户池

```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
```

## 获取 AKS 集群的凭证

```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.