Home

Awesome

dify-azure-terraform

Deploy langgenius/dify, an LLM based chat bot app on Azure with terraform.

Topology

Front-end access:

Back-end components:

Before you provision Dify, please check and set the variables in var.tf file.

Terraform Variables Documentation

This document provides detailed descriptions of the variables used in the Terraform configuration for setting up the Dify environment.

Kick Start

terraform init
terraform plan
terraform apply --auto-approve

Subscription ID

Virtual Network Variables

Region
VNET Address IP Prefix

Storage Account

Storage Account Container

Redis

PostgreSQL Flexible Server

PostgreSQL User
PostgreSQL Password

ACA Environment Variables

ACA Environment
ACA Log Analytics Workspace
IF BRING YOUR OWN CERTIFICATE
ACA Certificate Path (if isProvidedCert is true)
ACA Certificate Password (if isProvidedCert is true)
ACA Dify Customer Domain (if isProvidedCert is false)

Container Images

Dify API Image
Dify Sandbox Image
Dify Web Image