|
| 1 | +# Customizing Azure Deployment Parameters |
| 2 | + |
| 3 | +By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values. |
| 4 | + |
| 5 | +> To override any of the parameters, run `azd env set <PARAMETER_NAME> <VALUE>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-16 characters alphanumeric unique name. |
| 6 | +
|
| 7 | +## Core Configuration Parameters |
| 8 | + |
| 9 | +| **Name** | **Type** | **Default Value** | **Purpose** | |
| 10 | +|----------|----------|-------------------|-------------| |
| 11 | +| `AZURE_ENV_NAME` | string | (prompted) | Sets the environment name prefix for all Azure resources (3-16 alphanumeric characters) | |
| 12 | +| `AZURE_LOCATION` | string | (prompted) | Sets the primary location/region for all Azure resources | |
| 13 | +| `APP_ENV` | string | `Prod` | Application environment (Prod, Dev, etc.) | |
| 14 | + |
| 15 | +## Application Hosting Parameters |
| 16 | + |
| 17 | +| **Name** | **Type** | **Default Value** | **Purpose** | |
| 18 | +|----------|----------|-------------------|-------------| |
| 19 | +| `AZURE_APP_SERVICE_HOSTING_MODEL` | string | `container` | Hosting model for web apps (container or code) | |
| 20 | +| `HOSTING_PLAN_SKU` | string | `B3` | App Service plan pricing tier (B2, B3, S1, S2) | |
| 21 | + |
| 22 | +## Database Configuration |
| 23 | + |
| 24 | +| **Name** | **Type** | **Default Value** | **Purpose** | |
| 25 | +|----------|----------|-------------------|-------------| |
| 26 | +| `DATABASE_TYPE` | string | `PostgreSQL` | Type of database to deploy (PostgreSQL or CosmosDB) | |
| 27 | + |
| 28 | +## Azure AI Configurations |
| 29 | + |
| 30 | +| **Name** | **Type** | **Default Value** | **Purpose** | |
| 31 | +|----------|----------|-------------------|-------------| |
| 32 | +| `AZURE_SEARCH_USE_INTEGRATED_VECTORIZATION` | boolean | `false` | Enable integrated vectorization (must be false for PostgreSQL) | |
| 33 | +| `AZURE_SEARCH_USE_SEMANTIC_SEARCH` | boolean | `false` | Enable semantic search capabilities | |
| 34 | +| `AZURE_OPENAI_SKU_NAME` | string | `S0` | Azure OpenAI resource SKU | |
| 35 | +| `AZURE_OPENAI_MODEL` | string | `gpt-4.1` | Model deployment name | |
| 36 | +| `AZURE_OPENAI_MODEL_NAME` | string | `gpt-4.1` | Actual model name | |
| 37 | +| `AZURE_OPENAI_MODEL_VERSION` | string | `2025-04-14` | Model version | |
| 38 | +| `AZURE_OPENAI_MODEL_CAPACITY` | integer | `150` | Model capacity (TPM in thousands) | |
| 39 | +| `AZURE_OPENAI_API_VERSION` | string | `2024-02-01` | Azure OpenAI API version | |
| 40 | +| `AZURE_OPENAI_STREAM` | boolean | `true` | Enable streaming responses | |
| 41 | +| `AZURE_OPENAI_EMBEDDING_MODEL` | string | `text-embedding-ada-002` | Embedding model deployment name | |
| 42 | +| `AZURE_OPENAI_EMBEDDING_MODEL_NAME` | string | `text-embedding-ada-002` | Actual embedding model name | |
| 43 | +| `AZURE_OPENAI_EMBEDDING_MODEL_VERSION` | string | `2` | Embedding model version | |
| 44 | +| `AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY` | integer | `100` | Embedding model capacity (TPM in thousands) | |
| 45 | +| `USE_ADVANCED_IMAGE_PROCESSING` | boolean | `false` | Enable vision LLM and Computer Vision for images (must be false for PostgreSQL) | |
| 46 | +| `ADVANCED_IMAGE_PROCESSING_MAX_IMAGES` | integer | `1` | Maximum images per vision model request | |
| 47 | +| `AZURE_OPENAI_VISION_MODEL` | string | `gpt-4.1` | Vision model deployment name | |
| 48 | +| `AZURE_OPENAI_VISION_MODEL_NAME` | string | `gpt-4.1` | Actual vision model name | |
| 49 | +| `AZURE_OPENAI_VISION_MODEL_VERSION` | string | `2025-04-14` | Vision model version | |
| 50 | +| `AZURE_OPENAI_VISION_MODEL_CAPACITY` | integer | `10` | Vision model capacity (TPM in thousands) | |
| 51 | +| `AZURE_COMPUTER_VISION_LOCATION` | string | (empty) | Location for Computer Vision resource | |
| 52 | +| `COMPUTER_VISION_SKU_NAME` | string | `S1` | Computer Vision SKU (F0 or S1) | |
| 53 | +| `AZURE_COMPUTER_VISION_VECTORIZE_IMAGE_API_VERSION` | string | `2024-02-01` | API version for image vectorization | |
| 54 | +| `AZURE_COMPUTER_VISION_VECTORIZE_IMAGE_MODEL_VERSION` | string | `2023-04-15` | Model version for image vectorization | |
| 55 | +| `AZURE_SPEECH_RECOGNIZER_LANGUAGES` | string | `en-US,fr-FR,de-DE,it-IT` | Comma-separated list of speech recognition languages | |
| 56 | + |
| 57 | +## Virtual Machine Configuration (Production Only) |
| 58 | + |
| 59 | +| **Name** | **Type** | **Default Value** | **Purpose** | |
| 60 | +|----------|----------|-------------------|-------------| |
| 61 | +| `AZURE_ENV_JUMPBOX_SIZE` | string | (empty) | Size of the jump box VM | |
| 62 | +| `AZURE_ENV_VM_ADMIN_USERNAME` | string | (auto-generated) | Administrator username for VMs | |
| 63 | +| `AZURE_ENV_VM_ADMIN_PASSWORD` | string | (auto-generated) | Administrator password for VMs | |
| 64 | + |
| 65 | + |
| 66 | +## How to Set a Parameter |
| 67 | + |
| 68 | +To customize any of the above values, run the following command **before** `azd up`: |
| 69 | + |
| 70 | +```bash |
| 71 | +azd env set <PARAMETER_NAME> <VALUE> |
| 72 | +``` |
| 73 | + |
| 74 | +### Examples |
| 75 | + |
| 76 | +**Set a custom Azure region:** |
| 77 | +```bash |
| 78 | +azd env set AZURE_LOCATION eastus2 |
| 79 | +``` |
| 80 | + |
| 81 | +**Configure Azure OpenAI model capacity:** |
| 82 | +```bash |
| 83 | +azd env set AZURE_OPENAI_MODEL_CAPACITY 200 |
| 84 | +azd env set AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY 150 |
| 85 | +``` |
| 86 | + |
| 87 | +## Important Notes |
| 88 | + |
| 89 | +1. **PostgreSQL Limitations**: When using `DATABASE_TYPE=PostgreSQL`, you must set: |
| 90 | + - `AZURE_SEARCH_USE_INTEGRATED_VECTORIZATION=false` |
| 91 | + - `USE_ADVANCED_IMAGE_PROCESSING=false` |
| 92 | + - `ORCHESTRATION_STRATEGY=semantic_kernel` (recommended) |
| 93 | + |
| 94 | +2. **Region Compatibility**: Not all services are available in all regions. Verify service availability in your chosen region before deployment. |
0 commit comments