|
| 1 | +## [Optional]: Customizing resource names |
| 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-15 characters alphanumeric unique name. |
| 6 | +
|
| 7 | +## Parameters |
| 8 | + |
| 9 | +| Name | Type | Default Value | Purpose | |
| 10 | +| -------------------------------------- | ------- | ---------------------------- | ----------------------------------------------------------------------------- | |
| 11 | +| `AZURE_LOCATION` | string | `<User selects during deployment>` | Sets the Azure region for resource deployment. Allowed: `australiaeast`, `centralus`, `eastasia`, `eastus`, `eastus2`, `japaneast`, `northeurope`, `southeastasia`, `swedencentral`, `uksouth`, `westus`, `westus3`. | |
| 12 | +| `AZURE_ENV_NAME` | string | `contentgen` | Sets the environment name prefix for all Azure resources (3-15 characters). | |
| 13 | +| `secondaryLocation` | string | `uksouth` | Specifies a secondary Azure region for database creation. | |
| 14 | +| `gptModelName` | string | `gpt-5.1` | Specifies the GPT model name to deploy. | |
| 15 | +| `gptModelVersion` | string | `2025-11-13` | Sets the GPT model version. | |
| 16 | +| `gptModelDeploymentType` | string | `GlobalStandard` | Defines the model deployment type (allowed: `Standard`, `GlobalStandard`). | |
| 17 | +| `gptModelCapacity` | integer | `150` | Sets the GPT model token capacity (minimum: `10`). | |
| 18 | +| `imageModelChoice` | string | `gpt-image-1` | Image model to deploy (allowed: `gpt-image-1`, `gpt-image-1.5`, `dall-e-3`, `none`). | |
| 19 | +| `dalleModelCapacity` | integer | `1` | Sets the image model deployment capacity in RPM (minimum: `1`). | |
| 20 | +| `azureOpenaiAPIVersion` | string | `2025-01-01-preview` | Specifies the API version for Azure OpenAI service. | |
| 21 | +| `AZURE_ENV_OPENAI_LOCATION` | string | `<User selects during deployment>` | Sets the Azure region for OpenAI resource deployment. | |
| 22 | +| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | `""` | Reuses an existing Log Analytics Workspace instead of creating a new one. | |
| 23 | +| `AZURE_EXISTING_AI_PROJECT_RESOURCE_ID`| string | `""` | Reuses an existing AI Foundry Project instead of creating a new one. | |
| 24 | +| `ACR_NAME` | string | `contentgencontainerreg` | Sets the existing Azure Container Registry name (without `.azurecr.io`). | |
| 25 | +| `IMAGE_TAG` | string | `latest` | Sets the container image tag (e.g., `latest`, `dev`, `hotfix`). | |
| 26 | + |
| 27 | +## How to Set a Parameter |
| 28 | + |
| 29 | +To customize any of the above values, run the following command **before** `azd up`: |
| 30 | + |
| 31 | +```bash |
| 32 | +azd env set <PARAMETER_NAME> <VALUE> |
| 33 | +``` |
| 34 | + |
| 35 | +**Examples:** |
| 36 | + |
| 37 | +```bash |
| 38 | +azd env set AZURE_LOCATION westus2 |
| 39 | +azd env set gptModelName gpt-5.1 |
| 40 | +azd env set gptModelDeploymentType Standard |
| 41 | +azd env set imageModelChoice dall-e-3 |
| 42 | +azd env set ACR_NAME contentgencontainerreg |
| 43 | +``` |
0 commit comments