Skip to content

Commit 5f7fbde

Browse files
Merge pull request #145 from microsoft/psl-re-use-log-analytic-update
docs: Added use-log-analytic file and updated links and replaced content
2 parents a8a5665 + 2c9e8a1 commit 5f7fbde

File tree

6 files changed

+93
-40
lines changed

6 files changed

+93
-40
lines changed

docs/CustomizingAzdParameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ By default this template will use the environment name as the prefix to prevent
1515
| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o` | Set the Model Name (allowed values: gpt-4o). |
1616
| `AZURE_ENV_MODEL_VERSION` | string | `2024-08-06` | Set the Azure model version (allowed values: 2024-08-06) |
1717
| `AZURE_ENV_MODEL_CAPACITY` | integer | `200` | Set the Model Capacity (choose a number based on available GPT model capacity in your subscription). |
18-
| `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. |
18+
| `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. |
1919
| `AZURE_ENV_IMAGETAG` | string | `latest` | Set the Image tag Like (allowed values: latest, dev, hotfix) |
2020
| `AZURE_ENV_JUMPBOX_SIZE` | string | `Standard_DS2_v2` | Specifies the size of the Jumpbox Virtual Machine. Set a custom value if `enablePrivateNetworking` is `true`. |
2121
---
@@ -37,4 +37,4 @@ azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-i
3737

3838
```bash
3939
azd env set AZURE_LOCATION westus2
40-
```
40+
```

docs/DeploymentGuide.md

Lines changed: 60 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,39 +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):
32+
## Deployment Options & Steps
3833

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-
| **AI Location** | Location for all AI services resources. This location can be different from the resource group location. | japaneast |
44-
| **Capacity** | Configure capacity for **gpt-4o**. | 200 |
45-
| **Model Deployment Type** | Change the Model Deployment Type (allowed values: Standard, GlobalStandard). | GlobalStandard |
46-
| **Model Name** | Set the Model Name (allowed values: gpt-4o). | gpt-4o |
47-
| **Model Version** | Set the Azure model version (allowed values: 2024-08-06). | 2024-08-06 |
48-
| **Image Tag** | Set the Image tag (allowed values: latest, dev, hotfix). | latest |
49-
| **Existing Log analytics workspace** | To reuse the existing Log analytics workspace Id. | `<Existing Workspace Id>` |
50-
51-
52-
This accelerator can be configured to use authentication.
53-
54-
* To use authentication the installer must have the rights to create and register an application identity in their Azure environment.
55-
After installation is complete, follow the directions in the [App Authentication](../docs/AddAuthentication.md) document to enable authentication.
56-
* 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.
57-
58-
### [Optional] Quota Recommendations
59-
By default, the **GPT model capacity** in deployment is set to **5k tokens**.
60-
> **We recommend increasing the capacity to 200k tokens for optimal performance.**
61-
62-
To adjust quota settings, follow these [steps](../docs/AzureGPTQuotaSettings.md)
63-
64-
### Deployment Options & Steps
6534
### Sandbox or WAF Aligned Deployment Options
6635

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

8554
- Select **`true`** to deploy a **WAF-aligned, production-ready environment**
8655
- Select **`false`** to deploy a **lightweight sandbox/dev environment**
87-
-
56+
8857
> [!TIP]
8958
> 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.
9059
60+
### Deployment Steps
61+
9162
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
9263

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+
9367
<details>
9468
<summary><b>Deploy in GitHub Codespaces</b></summary>
9569

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

10781
</details>
10882

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

12195

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

12599
</details>
126100

@@ -146,11 +120,59 @@ If you're not using one of the above options for opening the project, then you'l
146120

147121
3. Open the project folder in your terminal or editor.
148122

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

151125
</details>
152126

153-
### 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+
| **AI Location** | Location for all AI services resources. This location can be different from the resource group location. | japaneast |
141+
| **Capacity** | Configure capacity for **gpt-4o**. | 200 |
142+
| **Model Deployment Type** | Change the Model Deployment Type (allowed values: Standard, GlobalStandard). | GlobalStandard |
143+
| **Model Name** | Set the Model Name (allowed values: gpt-4o). | gpt-4o |
144+
| **Model Version** | Set the Azure model version (allowed values: 2024-08-06). | 2024-08-06 |
145+
| **Image Tag** | Set the Image tag (allowed values: latest, dev, hotfix). | latest |
146+
| **Existing Log analytics workspace** | To reuse the existing Log analytics workspace Id. | `<Existing Workspace Id>` |
147+
148+
149+
This accelerator can be configured to use authentication.
150+
151+
* To use authentication the installer must have the rights to create and register an application identity in their Azure environment.
152+
After installation is complete, follow the directions in the [App Authentication](../docs/AddAuthentication.md) document to enable authentication.
153+
* 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.
154+
155+
</details>
156+
157+
<details>
158+
<Summary><b> Quota Recommendations </b></Summary>
159+
160+
By default, the **GPT model capacity** in deployment is set to **5k tokens**.
161+
> **We recommend increasing the capacity to 200k tokens for optimal performance.**
162+
163+
To adjust quota settings, follow these [steps](../docs/AzureGPTQuotaSettings.md)
164+
165+
</details>
166+
167+
<details>
168+
169+
<summary><b>Reusing an Existing Log Analytics Workspace</b></summary>
170+
171+
Guide to get your [Existing Workspace ID](/docs/re-use-log-analytics.md)
172+
173+
</details>
174+
175+
### Deploying with AZD
154176

155177
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.
156178
@@ -180,7 +202,7 @@ To change the azd parameters from the default values, follow the steps [here](..
180202
```shell
181203
azd up
182204
```
183-
205+
184206
4. Select a subscription from your Azure account, and select a location which has quota for all the resources.
185207
* This deployment will take *6-9 minutes* to provision the resources in your account and set up the solution with sample data.
186208
* 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](https://github.com/microsoft/Modernize-your-code-solution-accelerator/blob/psl-re-use-log-analytic-update/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](https://github.com/microsoft/Modernize-your-code-solution-accelerator/blob/psl-re-use-log-analytic-update/docs/DeploymentGuide.md#deployment-options--steps).

0 commit comments

Comments
 (0)