> ## 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インフラをセットアップするためのガイドです。

## 要件

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

## システムプールの作成

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