|
3 | 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 | 4 |
|
5 | 5 |
|
6 | | -> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 characters alphanumeric unique name. |
| 6 | +> 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-20 charaters alphanumeric unique name. |
| 7 | +
|
| 8 | +## Parameters |
| 9 | + |
| 10 | +| Name | Type | Default Value | Purpose | |
| 11 | +| -----------------------------| ------- | ------------------- | ---------------------------------------------------------------------------------------------------- | |
| 12 | +| `AZURE_ENV_NAME` | string | `azdtemp` | Used as a prefix for all resource names to ensure uniqueness across environments. | |
| 13 | +| `AZURE_ENV_COSMOS_LOCATION` | string | `eastus2` | Location of the Cosmos DB instance. Choose from (allowed values: `swedencentral`, `australiaeast`). | |
| 14 | +| `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` | string | `GlobalStandard` | Change the Model Deployment Type (allowed values: Standard, GlobalStandard). | |
| 15 | +| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o-mini` | Set the GPT model name (allowed values: `gpt-4o`). | |
| 16 | +| `AZURE_ENV_MODEL_VERSION` | string | `2025-01-01-preview` | Set the Azure OpenAI API version (allowed values: 2024-08-06). | |
| 17 | +| `AZURE_ENV_MODEL_CAPACITY` | integer | `30` | Set the model capacity for GPT deployment. Choose based on your Azure quota and usage needs. | |
| 18 | +| `AZURE_ENV_EMBEDDING_MODEL_NAME` | string | `text-embedding-ada-002` | Set the model name used for embeddings. | |
| 19 | +| `AZURE_ENV_EMBEDDING_MODEL_CAPACITY` | integer | `80` | Set the capacity for embedding model deployment. | |
| 20 | +| `AZURE_ENV_IMAGETAG` | string | `latest` | Set the image tag (allowed values: `latest`, `dev`, `hotfix`). | |
| 21 | +| `AZURE_ENV_OPENAI_LOCATION` | string | `eastus2` | Location of the Azure OpenAI resource. Choose from (allowed values: `swedencentral`, `australiaeast`). | |
| 22 | +| `AZURE_LOCATION` | string | `japaneast` | Sets the Azure region for resource deployment. | |
| 23 | +| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | `<Existing Workspace Id>` | Reuses an existing Log Analytics Workspace instead of provisioning a new one. | |
| 24 | + |
| 25 | +## How to Set a Parameter |
| 26 | +To customize any of the above values, run the following command **before** `azd up`: |
| 27 | + |
| 28 | +```bash |
| 29 | +azd env set <PARAMETER_NAME> <VALUE> |
7 | 30 |
|
8 | | - |
9 | | -Change the Secondary Location (example: eastus2, westus2, etc.) |
10 | | - |
11 | | -```shell |
12 | | -azd env set AZURE_ENV_SECONDARY_LOCATION eastus2 |
13 | | -``` |
14 | | - |
15 | | -Change the Model Deployment Type (allowed values: Standard, GlobalStandard) |
16 | | - |
17 | | -```shell |
18 | | -azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE Standard |
19 | | -``` |
20 | | - |
21 | | -Set the Model Name (allowed values: gpt-4, gpt-4o) |
22 | | - |
23 | | -```shell |
24 | | -azd env set AZURE_ENV_MODEL_NAME gpt-4o |
25 | | -``` |
26 | | - |
27 | | -Change the Model Capacity (choose a number based on available GPT model capacity in your subscription) |
28 | | - |
29 | | -```shell |
30 | | -azd env set AZURE_ENV_MODEL_CAPACITY 30 |
31 | | -``` |
32 | | - |
33 | | -Change the Embedding Model |
34 | | - |
35 | | -```shell |
36 | | -azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002 |
37 | | -``` |
38 | | - |
39 | | -Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription) |
40 | | - |
41 | | -```shell |
42 | | -azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80 |
43 | 31 | ``` |
44 | 32 |
|
45 | | -Set the Log Analytics Workspace Id if you need to reuse the existing workspace which is already existing |
| 33 | +**Example:** |
46 | 34 |
|
47 | | -```shell |
48 | | -azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.OperationalInsights/workspaces/<workspace-name>' |
| 35 | +```bash |
| 36 | +azd env set AZURE_LOCATION westus2 |
49 | 37 | ``` |
0 commit comments