|
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 charaters 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 | +## Parameters |
8 | 9 |
|
9 | | -Change the Secondary Location (example: eastus2, westus2, etc.) |
| 10 | +| Name | Type | Example Value | Purpose | |
| 11 | +| -------------------------------------- | ------- | ---------------------------- | ----------------------------------------------------------------------------- | |
| 12 | +| `AZURE_LOCATION` | string | `japaneast` | Sets the Azure region for resource deployment. | |
| 13 | +| `AZURE_ENV_NAME` | string | `docgen` | Sets the environment name prefix for all Azure resources. | |
| 14 | +| `AZURE_ENV_SECONDARY_LOCATION` | string | `eastus2` | Specifies a secondary Azure region. | |
| 15 | +| `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` | string | `Standard` | Defines the model deployment type (allowed: `Standard`, `GlobalStandard`). | |
| 16 | +| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o` | Specifies the GPT model name (allowed: `gpt-4`, `gpt-4o`). | |
| 17 | +| `AZURE_ENV_MODEL_VERSION` | string | `2024-05-13` | Set the Azure model version (allowed values: `2024-08-06`). | |
| 18 | +| `AZURE_ENV_OPENAI_API_VERSION` | string | `2024-05-01-preview` | Specifies the API version for Azure OpenAI. | |
| 19 | +| `AZURE_ENV_MODEL_CAPACITY` | integer | `30` | Sets the GPT model capacity (based on what's available in your subscription). | |
| 20 | +| `AZURE_ENV_EMBEDDING_MODEL_NAME` | string | `text-embedding-ada-002` | Sets the name of the embedding model to use. | |
| 21 | +| `AZURE_ENV_IMAGETAG` | string | `latest` | Set the Image tag Like (allowed values: latest, dev, hotfix) | |
| 22 | +| `AZURE_ENV_EMBEDDING_MODEL_CAPACITY` | integer | `80` | Sets the capacity for the embedding model deployment. | |
| 23 | +| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | `<Existing Workspace Id>` | Reuses an existing Log Analytics Workspace instead of creating a new one. | |
10 | 24 |
|
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 | 25 |
|
23 | | -```shell |
24 | | -azd env set AZURE_ENV_MODEL_NAME gpt-4o |
25 | | -``` |
| 26 | +## How to Set a Parameter |
26 | 27 |
|
27 | | -Change the Model Capacity (choose a number based on available GPT model capacity in your subscription) |
| 28 | +To customize any of the above values, run the following command **before** `azd up`: |
28 | 29 |
|
29 | | -```shell |
30 | | -azd env set AZURE_ENV_MODEL_CAPACITY 30 |
| 30 | +```bash |
| 31 | +azd env set <PARAMETER_NAME> <VALUE> |
31 | 32 | ``` |
32 | 33 |
|
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 | | -``` |
| 34 | +**Example:** |
44 | 35 |
|
45 | | -Set the Log Analytics Workspace Id if you need to reuse the existing workspace |
46 | | -```shell |
47 | | -azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace Id>' |
| 36 | +```bash |
| 37 | +azd env set AZURE_LOCATION westus2 |
48 | 38 | ``` |
0 commit comments