# Azure Deployment Guide {#azure-deployment-guide}


Deploy Ever Gauzy to Microsoft Azure.


## Architecture {#architecture}






```mermaid
graph TB
    AG[App Gateway] --> App1[App Service: API]
    AG --> App2[App Service: Webapp]
    App1 --> PG[(Azure Database for PostgreSQL)]
    App1 --> Redis[(Azure Cache for Redis)]
    App1 --> Blob[(Blob Storage)]
    DNS[Azure DNS] --> AG
```






## Services Used {#services-used}


| Azure Service         | Purpose             |
| --------------------- | ------------------- |
| App Service           | Container hosting   |
| Azure Database for PG | PostgreSQL          |
| Azure Cache for Redis | Redis               |
| Blob Storage          | File storage        |
| Application Gateway   | Load balancer + WAF |
| Azure DNS             | DNS management      |
| Key Vault             | Secret management   |
| Application Insights  | Monitoring          |


## Quick Start {#quick-start}



### 1. Create Resources {#1-create-resources}


```bash
# Create resource group
az group create --name gauzy-rg --location eastus

# Create PostgreSQL
az postgres flexible-server create \
  --name gauzy-db \
  --resource-group gauzy-rg \
  --admin-user gauzy \
  --admin-password your-password \
  --sku-name Standard_B1ms

# Create Redis
az redis create \
  --name gauzy-redis \
  --resource-group gauzy-rg \
  --sku Basic \
  --vm-size c0

# Create App Service
az webapp create \
  --name gauzy-api \
  --resource-group gauzy-rg \
  --plan gauzy-plan \
  --deployment-container-image-name ghcr.io/ever-co/gauzy-api:latest
```


### 2. Configure Environment {#2-configure-environment}


```bash
az webapp config appsettings set \
  --name gauzy-api \
  --resource-group gauzy-rg \
  --settings \
    DB_TYPE=postgres \
    DB_HOST=gauzy-db.postgres.database.azure.com \
    REDIS_HOST=gauzy-redis.redis.cache.windows.net
```


## Related Pages {#related-pages}


- [Production Deployment](https://sourcey-gauzy.pages.dev/devops/production-deployment/index.md) — general guide
- [GCP Deployment](https://sourcey-gauzy.pages.dev/deployment/cloud/gcp-deployment/index.md) — Google Cloud alternative
