Skip to content

Commit ead86e0

Browse files
Merge remote-tracking branch 'origin/main' into dev
2 parents 157cf1b + 0d5b5cd commit ead86e0

8 files changed

Lines changed: 97 additions & 44 deletions

File tree

.github/workflows/azure-dev-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
# Step 2: Validate the Azure template using microsoft/template-validation-action
2121
- name: Validate Azure Template
22-
uses: microsoft/template-validation-action@v0.3.5
22+
uses: microsoft/template-validation-action@Latest
2323
id: validation
2424
env:
2525
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}

docs/CustomizingAzdParameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ By default this template will use the environment name as the prefix to prevent
1414
| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o` | Set the Model Name (allowed values: gpt-4o). |
1515
| `AZURE_ENV_MODEL_VERSION` | string | `2024-08-06` | Set the Azure model version (allowed values: 2024-08-06) |
1616
| `AZURE_ENV_MODEL_CAPACITY` | integer | `200` | Set the Model Capacity (choose a number based on available GPT model capacity in your subscription). |
17-
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | `<Existing Workspace Id>` | Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
17+
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | Guide to get your [Existing Workspace ID](/docs/re-use-log-analytics.md) | Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
1818
| `AZURE_ENV_IMAGETAG` | string | `latest` | Set the Image tag Like (allowed values: latest, dev, hotfix) |
1919
| `AZURE_ENV_JUMPBOX_SIZE` | string | `Standard_DS2_v2` | Specifies the size of the Jumpbox Virtual Machine. Set a custom value if `enablePrivateNetworking` is `true`. |
2020
| `AZURE_ENV_JUMPBOX_ADMIN_USERNAME` | string | `JumpboxAdminUser` | Specifies the administrator username for the Jumpbox Virtual Machine. |
@@ -39,4 +39,4 @@ azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-i
3939

4040
```bash
4141
azd env set AZURE_LOCATION westus2
42-
```
42+
```

docs/DeploymentGuide.md

Lines changed: 62 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -29,41 +29,8 @@ Check the [Azure Products by Region](https://azure.microsoft.com/en-us/explore/g
2929

3030
➡️ To ensure sufficient quota is available in your subscription, please follow **[Quota check instructions guide](../docs/quota_check.md)** before you deploy the solution.
3131

32-
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator) |
33-
|---|---|
34-
35-
### **Configurable Deployment Settings**
36-
37-
When you start the deployment, most parameters will have **default values**, but you can update the following settings by following the steps [here](../docs/CustomizingAzdParameters.md):
38-
39-
| **Setting** | **Description** | **Default value** |
40-
|----------------------------------|------------------------------------------------------------------------------------------------------|----------------------------|
41-
| **Azure Region** | The region where resources will be created. | East US |
42-
| **Resource Prefix** | Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group. | azdtemp |
43-
| **Capacity** | Configure capacity for **gpt-4o**. | 200 |
44-
| **Model Deployment Type** | Change the Model Deployment Type (allowed values: Standard, GlobalStandard). | GlobalStandard |
45-
| **Model Name** | Set the Model Name (allowed values: gpt-4o). | gpt-4o |
46-
| **Model Version** | Set the Azure model version (allowed values: 2024-08-06). | 2024-08-06 |
47-
| **Image Tag** | Set the Image tag (allowed values: latest, dev, hotfix). | latest |
48-
| **Existing Log analytics workspace** | To reuse the existing Log analytics workspace Id. | `<Existing Workspace Id>` |
49-
| **Jumpbox Admin Username** | Specifies the administrator username for the Jumpbox Virtual Machine. | `JumpboxAdminUser` |
50-
| **Jumpbox Admin Password** | Specifies the administrator password for the Jumpbox Virtual Machine. | `JumpboxAdminP@ssw0rd1234!` |
51-
| **Cosmos DB Secondary Location** | Specifies the secondary region for Cosmos DB. Set this if redundancy (`enableRedundancy`) is enabled. | `<Secondary Region>` |
52-
32+
## Deployment Options & Steps
5333

54-
This accelerator can be configured to use authentication.
55-
56-
* To use authentication the installer must have the rights to create and register an application identity in their Azure environment.
57-
After installation is complete, follow the directions in the [App Authentication](../docs/AddAuthentication.md) document to enable authentication.
58-
* Note: If you enable authentication, all processing history and current processing will be performed for your specific user. Without authentication, all batch history from the tool will be visible to all users.
59-
60-
### [Optional] Quota Recommendations
61-
By default, the **GPT model capacity** in deployment is set to **5k tokens**.
62-
> **We recommend increasing the capacity to 200k tokens for optimal performance.**
63-
64-
To adjust quota settings, follow these [steps](../docs/AzureGPTQuotaSettings.md)
65-
66-
### Deployment Options & Steps
6734
### Sandbox or WAF Aligned Deployment Options
6835

6936
The [`infra`](../infra) folder contains the [`main.bicep`](../infra/main.bicep) Bicep script, which defines all Azure infrastructure components for this solution.
@@ -86,12 +53,17 @@ When prompted during `azd up`:
8653

8754
- Select **`true`** to deploy a **WAF-aligned, production-ready environment**
8855
- Select **`false`** to deploy a **lightweight sandbox/dev environment**
89-
-
56+
9057
> [!TIP]
9158
> Always review and adjust parameter values (such as region, capacity, security settings and log analytics workspace configuration) to match your organization’s requirements before deploying. For production, ensure you have sufficient quota and follow the principle of least privilege for all identities and role assignments.
9259
60+
### Deployment Steps
61+
9362
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
9463

64+
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator) |
65+
|---|---|
66+
9567
<details>
9668
<summary><b>Deploy in GitHub Codespaces</b></summary>
9769

@@ -104,7 +76,7 @@ You can run this solution using GitHub Codespaces. The button will open a web-ba
10476
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator)
10577
2. Accept the default values on the create Codespaces page
10678
3. Open a terminal window if it is not already open
107-
4. Continue with the [deploying steps](#deploying)
79+
4. Continue with the [deploying steps](#deploying-with-azd)
10880

10981
</details>
11082

@@ -122,7 +94,7 @@ You can run this solution in VS Code Dev Containers, which will open the project
12294

12395

12496
3. In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window.
125-
4. Continue with the [deploying steps](#deploying)
97+
4. Continue with the [deploying steps](#deploying-with-azd)
12698

12799
</details>
128100

@@ -148,11 +120,61 @@ If you're not using one of the above options for opening the project, then you'l
148120

149121
3. Open the project folder in your terminal or editor.
150122

151-
4. Continue with the [deploying steps](#deploying).
123+
4. Continue with the [deploying steps](#deploying-with-azd).
152124

153125
</details>
154126

155-
### Deploying
127+
<br/>
128+
129+
Consider the following settings during your deployment to modify specific settings:
130+
131+
<details>
132+
<Summary><b>Configurable Deployment Settings</b></Summary>
133+
134+
When you start the deployment, most parameters will have **default values**, but you can update the following settings by following the steps [here](../docs/CustomizingAzdParameters.md):
135+
136+
| **Setting** | **Description** | **Default value** |
137+
|----------------------------------|------------------------------------------------------------------------------------------------------|----------------------------|
138+
| **Azure Region** | The region where resources will be created. | East US |
139+
| **Resource Prefix** | Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group. | azdtemp |
140+
| **Capacity** | Configure capacity for **gpt-4o**. | 200 |
141+
| **Model Deployment Type** | Change the Model Deployment Type (allowed values: Standard, GlobalStandard). | GlobalStandard |
142+
| **Model Name** | Set the Model Name (allowed values: gpt-4o). | gpt-4o |
143+
| **Model Version** | Set the Azure model version (allowed values: 2024-08-06). | 2024-08-06 |
144+
| **Image Tag** | Set the Image tag (allowed values: latest, dev, hotfix). | latest |
145+
| **Existing Log analytics workspace** | To reuse the existing Log analytics workspace Id. | `<Existing Workspace Id>` |
146+
| **Jumpbox Admin Username** | Specifies the administrator username for the Jumpbox Virtual Machine. | `JumpboxAdminUser` |
147+
| **Jumpbox Admin Password** | Specifies the administrator password for the Jumpbox Virtual Machine. | `JumpboxAdminP@ssw0rd1234!` |
148+
| **Cosmos DB Secondary Location** | Specifies the secondary region for Cosmos DB. Set this if redundancy (`enableRedundancy`) is enabled. | `<Secondary Region>` |
149+
150+
151+
This accelerator can be configured to use authentication.
152+
153+
* To use authentication the installer must have the rights to create and register an application identity in their Azure environment.
154+
After installation is complete, follow the directions in the [App Authentication](../docs/AddAuthentication.md) document to enable authentication.
155+
* Note: If you enable authentication, all processing history and current processing will be performed for your specific user. Without authentication, all batch history from the tool will be visible to all users.
156+
157+
</details>
158+
159+
<details>
160+
<Summary><b> Quota Recommendations </b></Summary>
161+
162+
By default, the **GPT model capacity** in deployment is set to **5k tokens**.
163+
> **We recommend increasing the capacity to 200k tokens for optimal performance.**
164+
165+
To adjust quota settings, follow these [steps](../docs/AzureGPTQuotaSettings.md)
166+
167+
</details>
168+
169+
<details>
170+
171+
<summary><b>Reusing an Existing Log Analytics Workspace</b></summary>
172+
173+
Guide to get your [Existing Workspace ID](/docs/re-use-log-analytics.md)
174+
175+
</details>
176+
177+
### Deploying with AZD
156178

157179
Once you've opened the project in [Codespaces](#github-codespaces) or in [Dev Containers](#vs-code-dev-containers) or [locally](#local-environment), you can deploy it to Azure following the following steps.
158180
@@ -182,7 +204,7 @@ To change the azd parameters from the default values, follow the steps [here](..
182204
```shell
183205
azd up
184206
```
185-
207+
186208
4. Select a subscription from your Azure account, and select a location which has quota for all the resources.
187209
* This deployment will take *6-9 minutes* to provision the resources in your account and set up the solution with sample data.
188210
* If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
142 KB
Loading
196 KB
Loading
88.9 KB
Loading

docs/re-use-log-analytics.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[← Back to *DEPLOYMENT* guide](/docs/DeploymentGuide.md#deployment-options--steps)
2+
3+
# Reusing an Existing Log Analytics Workspace
4+
To configure your environment to use an existing Log Analytics Workspace, follow these steps:
5+
---
6+
### 1. Go to Azure Portal
7+
Go to https://portal.azure.com
8+
9+
### 2. Search for Log Analytics
10+
In the search bar at the top, type "Log Analytics workspaces" and click on it and click on the workspace you want to use.
11+
12+
![alt text](../docs/images/re_use_log/logAnalyticsList.png)
13+
14+
### 3. Copy Resource ID
15+
In the Overview pane, Click on JSON View
16+
17+
![alt text](../docs/images/re_use_log/logAnalytics.png)
18+
19+
Copy Resource ID that is your Workspace ID
20+
21+
![alt text](../docs/images/re_use_log/logAnalyticsJson.png)
22+
23+
### 4. Set the Workspace ID in Your Environment
24+
Run the following command in your terminal
25+
```bash
26+
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace Id>'
27+
```
28+
Replace `<Existing Log Analytics Workspace Id>` with the value obtained from Step 3.
29+
30+
### 5. Continue Deployment
31+
Proceed with the next steps in the [deployment guide](/docs/DeploymentGuide.md#deployment-options--steps).

scripts/checkquota.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo "✅ Azure subscription set successfully."
2626
# Define models and their minimum required capacities
2727
declare -A MIN_CAPACITY=(
2828

29-
["OpenAI.GlobalStandard.gpt4.1"]=$GPT_MIN_CAPACITY
29+
["OpenAI.GlobalStandard.gpt-4o"]=$GPT_MIN_CAPACITY
3030
)
3131

3232
VALID_REGION=""

0 commit comments

Comments
 (0)