You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CustomizingAzdParameters.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ By default this template will use the environment name as the prefix to prevent
15
15
|`AZURE_ENV_MODEL_NAME`| string |`gpt-4o`| Set the Model Name (allowed values: gpt-4o). |
16
16
|`AZURE_ENV_MODEL_VERSION`| string |`2024-08-06`| Set the Azure model version (allowed values: 2024-08-06) |
17
17
|`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. |
19
19
|`AZURE_ENV_IMAGETAG`| string |`latest`| Set the Image tag Like (allowed values: latest, dev, hotfix) |
20
20
|`AZURE_ENV_JUMPBOX_SIZE`| string |`Standard_DS2_v2`| Specifies the size of the Jumpbox Virtual Machine. Set a custom value if `enablePrivateNetworking` is `true`. |
21
21
---
@@ -37,4 +37,4 @@ azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-i
Copy file name to clipboardExpand all lines: docs/DeploymentGuide.md
+60-38Lines changed: 60 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,39 +29,8 @@ Check the [Azure Products by Region](https://azure.microsoft.com/en-us/explore/g
29
29
30
30
➡️ To ensure sufficient quota is available in your subscription, please follow **[Quota check instructions guide](../docs/quota_check.md)** before you deploy the solution.
31
31
32
-
|[](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator)|[](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):
|**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
65
34
### Sandbox or WAF Aligned Deployment Options
66
35
67
36
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`:
84
53
85
54
- Select **`true`** to deploy a **WAF-aligned, production-ready environment**
86
55
- Select **`false`** to deploy a **lightweight sandbox/dev environment**
87
-
-
56
+
88
57
> [!TIP]
89
58
> 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.
90
59
60
+
### Deployment Steps
61
+
91
62
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
92
63
64
+
|[](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator)|
65
+
|---|---|
66
+
93
67
<details>
94
68
<summary><b>Deploy in GitHub Codespaces</b></summary>
95
69
@@ -102,7 +76,7 @@ You can run this solution using GitHub Codespaces. The button will open a web-ba
102
76
[](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator)
103
77
2. Accept the default values on the create Codespaces page
104
78
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)
106
80
107
81
</details>
108
82
@@ -120,7 +94,7 @@ You can run this solution in VS Code Dev Containers, which will open the project
120
94
121
95
122
96
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)
124
98
125
99
</details>
126
100
@@ -146,11 +120,59 @@ If you're not using one of the above options for opening the project, then you'l
146
120
147
121
3. Open the project folder in your terminal or editor.
148
122
149
-
4. Continue with the [deploying steps](#deploying).
123
+
4. Continue with the [deploying steps](#deploying-with-azd).
150
124
151
125
</details>
152
126
153
-
### Deploying
127
+
<br/>
128
+
129
+
Consider the following settings during your deployment to modify specific settings:
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):
|**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 |
|**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
154
176
155
177
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.
156
178
@@ -180,7 +202,7 @@ To change the azd parameters from the default values, follow the steps [here](..
180
202
```shell
181
203
azd up
182
204
```
183
-
205
+
184
206
4. Select a subscription from your Azure account, and select a location which has quota for all the resources.
185
207
* This deployment will take *6-9 minutes* to provision the resources in your account and set up the solution with sample data.
186
208
* If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
[← 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.
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