> ## 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/ja/3.4.x/deploy/test-production/testing-deployment.md) のワーカーノード仕様と同じです。

> [!NOTE]
>
> このガイドで扱うのは AKS クラスターの作成のみです。コンテナレジストリ、永続ストレージ、PostgreSQL、Redis、Qdrant は [テスト環境でのデプロイ](https://enterprise-docs.dify.ai/ja/3.4.x/deploy/test-production/testing-deployment.md) の要件に従って別途準備してください。ドメインは [リソース仕様](https://enterprise-docs.dify.ai/ja/3.4.x/deploy/resources-checklist.md) に従って準備してください。

## 要件

* AKS
  * システムプール - 1 ノード - Standard\_DS2\_v2 (2 vcpus, 7 GiB メモリ)
  * ユーザープール - 1 ノード - Standard\_D4s\_v5 (4 vcpus, 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.