|
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 | 7 |
|
8 | | -Change the Content Understanding Location (allowed values: Sweden Central, Australia East) |
| 8 | +## Parameters |
9 | 9 |
|
10 | | -```shell |
11 | | -azd env set AZURE_CONTENT_UNDERSTANDING_LOCATION 'swedencentral' |
12 | | -``` |
13 | | - |
14 | | -Change the Secondary Location (example: eastus2, westus2, etc.) |
15 | | - |
16 | | -```shell |
17 | | -azd env set AZURE_SECONDARY_LOCATION eastus2 |
18 | | -``` |
19 | | - |
20 | | -Change the Model Deployment Type (allowed values: Standard, GlobalStandard) |
21 | | - |
22 | | -```shell |
23 | | -azd env set AZURE_OPENAI_MODEL_DEPLOYMENT_TYPE GlobalStandard |
24 | | -``` |
25 | | - |
26 | | -Set the Model Name (allowed values: gpt-4o-mini, gpt-4o, gpt-4) |
| 10 | +| Name | Type | Default Value | Purpose | |
| 11 | +| ----------------------------------------- | ------- | ------------------------ | -------------------------------------------------------------------------- | |
| 12 | +| `AZURE_LOCATION` | string | ` ` *(empty)* | Sets the Azure region for resource deployment. | |
| 13 | +| `AZURE_ENV_NAME` | string | `env_name` | Sets the environment name prefix for all Azure resources. | |
| 14 | +| `AZURE_CONTENT_UNDERSTANDING_LOCATION` | string | `swedencentral` | Specifies the region for content understanding resources. | |
| 15 | +| `AZURE_SECONDARY_LOCATION` | string | `eastus2` | Specifies a secondary Azure region. | |
| 16 | +| `AZURE_OPEN_AI_MODEL_DEPLOYMENT_TYPE` | string | `GlobalStandard` | Defines the model deployment type (allowed: `Standard`, `GlobalStandard`). | |
| 17 | +| `AZURE_OPEN_AI_DEPLOYMENT_MODEL` | string | `gpt-4o-mini` | Specifies the GPT model name (e.g., `gpt-4`, `gpt-4o-mini`). | |
| 18 | +| `AZURE_ENV_MODEL_VERSION` | string | `2024-07-18` | Sets the Azure model version (allowed: `2024-08-06`, etc.). | |
| 19 | +| `AZURE_OPENAI_API_VERSION` | string | `2025-01-01-preview` | Specifies the API version for Azure OpenAI. | |
| 20 | +| `AZURE_OPEN_AI_DEPLOYMENT_MODEL_CAPACITY` | integer | `30` | Sets the GPT model capacity. | |
| 21 | +| `AZURE_OPENAI_EMBEDDING_MODEL` | string | `text-embedding-ada-002` | Sets the name of the embedding model to use. | |
| 22 | +| `AZURE_ENV_IMAGETAG` | string | `latest` | Sets the image tag (`latest`, `dev`, `hotfix`, etc.). | |
| 23 | +| `AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY` | integer | `80` | Sets the capacity for the embedding model deployment. | |
| 24 | +| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | ` ` *(empty)* | Reuses an existing Log Analytics Workspace instead of creating a new one. | |
27 | 25 |
|
28 | | -```shell |
29 | | -azd env set AZURE_OPENAI_DEPLOYMENT_MODEL gpt-4o-mini |
30 | | -``` |
31 | 26 |
|
32 | | -Change the Model Capacity (choose a number based on available GPT model capacity in your subscription) |
33 | 27 |
|
34 | | -```shell |
35 | | -azd env set AZURE_OPENAI_DEPLOYMENT_MODEL_CAPACITY 30 |
36 | | -``` |
| 28 | +## How to Set a Parameter |
37 | 29 |
|
38 | | -Change the Embedding Model |
| 30 | +To customize any of the above values, run the following command **before** `azd up`: |
39 | 31 |
|
40 | | -```shell |
41 | | -azd env set AZURE_OPENAI_EMBEDDING_MODEL text-embedding-ada-002 |
| 32 | +```bash |
| 33 | +azd env set <PARAMETER_NAME> <VALUE> |
42 | 34 | ``` |
43 | 35 |
|
44 | | -Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription) |
45 | | - |
46 | | -```shell |
47 | | -azd env set AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY 80 |
48 | | -``` |
| 36 | +**Example:** |
49 | 37 |
|
50 | | -Set the Log Analytics Workspace Id if you need to reuse the existing workspace which is already existing |
51 | | -```shell |
52 | | -azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.OperationalInsights/workspaces/<workspace-name>' |
| 38 | +```bash |
| 39 | +azd env set AZURE_LOCATION westus2 |
53 | 40 | ``` |
0 commit comments