Skip to content

Commit f61234f

Browse files
US:18890-Standardize Bicep Parameters for MACAE
1 parent 131832a commit f61234f

File tree

4 files changed

+42
-11
lines changed

4 files changed

+42
-11
lines changed

docs/CustomizingAzdParameters.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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-20 characters alphanumeric unique name.
6+
7+
## Parameters
8+
| Name | Type | Default Value | Purpose |
9+
| ---------------------------- | ------ | ----------------- | --------------------------------------------------------------------------------------------------- |
10+
| `AZURE_ENV_NAME` | string | `macae` | Used as a prefix for all resource names to ensure uniqueness across environments. |
11+
| `AZURE_LOCATION` | string | `japaneast` | Location of the Azure resources. Controls where the infrastructure will be deployed. |
12+
| `AZURE_ENV_OPENAI_LOCATION` | string | `swedencentral` | Specifies the region for OpenAI resource deployment. |
13+
| `AZURE_ENV_ENABLE_TELEMETRY` | bool | `true` | Enables telemetry for monitoring and diagnostics. |
14+
15+
---
16+
17+
## How to Set a Parameter
18+
19+
To customize any of the above values, run the following command **before** `azd up`:
20+
21+
```bash
22+
azd env set <PARAMETER_NAME> <VALUE>
23+
```
24+
25+
**Example:**
26+
27+
```bash
28+
azd env set AZURE_LOCATION westus2
29+
```

documentation/DeploymentGuide.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ Consider the following settings during your deployment to modify specific settin
134134
<details>
135135
<summary><b>Configurable Deployment Settings</b></summary>
136136

137-
When you start the deployment, most parameters will have **default values**, but you can update the following settings:
138-
139-
| **Setting** | **Description** | **Default value** |
140-
| --------------------------------- | ------------------------------------------------------------------------------------------- | ----------------- |
141-
| **Azure Region** | The region where resources will be created. | East US |
142-
| **Secondary Location** | A **less busy** region for **Azure Cosmos DB**, useful in case of availability constraints. | eastus2 |
143-
| **Deployment Type** | Select from a drop-down list. | GlobalStandard |
144-
| **GPT Model** | Choose from **gpt-4, gpt-4o, gpt-4o-mini**. | gpt-4o |
145-
| **GPT Model Deployment Capacity** | Configure capacity for **GPT models**. | 140k |
137+
When you start the deployment, most parameters will have **default values**, but you can update the following settings [here](../docs/CustomizingAzdParameters.md):
138+
139+
| **Setting** | **Description** | **Default value** |
140+
| ------------------------------ | ------------------------------------------------------------------------------------ | ----------------- |
141+
| **Environment Name** | Used as a prefix for all resource names to ensure uniqueness across environments. | macae |
142+
| **Azure Region** | Location of the Azure resources. Controls where the infrastructure will be deployed. | japaneast |
143+
| **OpenAI Deployment Location** | Specifies the region for OpenAI resource deployment. | swedencentral |
144+
| **Enable Telemetry** | Enables telemetry for monitoring and diagnostics. | true |
145+
146146

147147
</details>
148148

infra/main.bicepparam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using './main.bicep'
22

3-
param solutionPrefix = null //Type a string value to customize the prefix for your resource names
3+
param solutionPrefix = readEnvironmentVariable('AZURE_ENV_NAME', 'macae')
44
param solutionLocation = readEnvironmentVariable('AZURE_LOCATION', 'swedencentral')
55
param azureOpenAILocation = readEnvironmentVariable('AZURE_ENV_OPENAI_LOCATION', 'swedencentral')
6+
param enableTelemetry = bool(readEnvironmentVariable('AZURE_ENV_ENABLE_TELEMETRY', 'true'))
67
param logAnalyticsWorkspaceConfiguration = {
78
dataRetentionInDays: 30
89
existingWorkspaceResourceId: ''

infra/main.waf-aligned.bicepparam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using './main.bicep'
22

3-
param solutionPrefix = null //Type a string value to customize the prefix for your resource names
3+
param solutionPrefix = readEnvironmentVariable('AZURE_ENV_NAME', 'macae')
44
param solutionLocation = readEnvironmentVariable('AZURE_LOCATION', 'swedencentral')
55
param azureOpenAILocation = readEnvironmentVariable('AZURE_ENV_OPENAI_LOCATION', 'swedencentral')
6+
param enableTelemetry = bool(readEnvironmentVariable('AZURE_ENV_ENABLE_TELEMETRY', 'true'))
67
param virtualMachineConfiguration = {
78
adminUsername: 'adminuser'
89
adminPassword: 'P@ssw0rd1234'

0 commit comments

Comments
 (0)