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: README.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
@@ -72,8 +72,8 @@ Follow the quick deploy steps on the deployment guide to deploy this solution to
72
72
[Click here to launch the deployment guide](./docs/DeploymentGuide.md)
73
73
<br/><br/>
74
74
75
-
|[](https://codespaces.new/microsoft/document-generation-solution-accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator)|
76
-
|---|---|
75
+
| [](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) | [&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==) |
Copy file name to clipboardExpand all lines: docs/DeploymentGuide.md
+50-6Lines changed: 50 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,10 @@ azd env set AZURE_ENV_VM_ADMIN_PASSWORD <your-password>
64
64
65
65
## Deployment Options & Steps
66
66
67
-
Pick from the options below to see step-by-step instructions for GitHub Codespaces, VS Code Dev Containers, and Local Environments.
67
+
Pick from the options below to see step-by-step instructions for GitHub Codespaces, VS Code Dev Containers, Visual Studio Code (WEB) and Local Environments.
68
68
69
-
|[](https://codespaces.new/microsoft/document-generation-solution-accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator)|
70
-
|---|---|
69
+
| [](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) | [&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==) |
70
+
|---|---|--|
71
71
72
72
<details>
73
73
<summary><b>Deploy in GitHub Codespaces</b></summary>
@@ -103,6 +103,38 @@ You can run this solution in VS Code Dev Containers, which will open the project
103
103
104
104
</details>
105
105
106
+
<details>
107
+
<summary><b>Deploy in Visual Studio Code (WEB)</b></summary>
108
+
109
+
### Visual Studio Code (WEB)
110
+
111
+
You can run this solution in VS Code Web. The button will open a web-based VS Code instance in your browser:
112
+
113
+
1. Open the solution accelerator (this may take several minutes):
114
+
115
+
[&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==)
116
+
117
+
2. When prompted, sign in using your Microsoft account linked to your Azure subscription.
118
+
119
+
Select the appropriate subscription to continue.
120
+
121
+
3. Once the solution opens, the **AI Foundry terminal** will automatically start running the following command to install the required dependencies:
122
+
123
+
```shell
124
+
sh install.sh
125
+
```
126
+
During this process, you’ll be prompted with the message:
127
+
```
128
+
What would you like to do with these files?
129
+
- Overwrite with versions from template
130
+
- Keep my existing files unchanged
131
+
```
132
+
Choose “**Overwrite with versions from template**” and provide a unique environment name when prompted.
133
+
134
+
4. Continue with the [deploying steps](#deploying-with-azd).
135
+
136
+
</details>
137
+
106
138
<details>
107
139
<summary><b>Deploy in your local Environment</b></summary>
108
140
@@ -172,7 +204,7 @@ To adjust quota settings, follow these [steps](./AzureGPTQuotaSettings.md).
172
204
173
205
### Deploying with AZD
174
206
175
-
Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure by following these steps:
207
+
Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), [Visual Studio Code (WEB)](#visual-studio-code-web) or [locally](#local-environment), you can deploy it to Azure by following these steps:
176
208
177
209
1. Login to Azure:
178
210
@@ -209,10 +241,11 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
209
241
210
242
6. Open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service and get the app URL from `Default domain`.
211
243
212
-
7. You can now delete the resources by running `azd down`, if you are done trying out the application.
244
+
7. You can now delete the resources by running `azd down`, if you are done trying out the application.
245
+
>**Note:** If you deployed with `enableRedundancy=true` and Log Analytics workspace replication is enabled, you must first disable replication before running `azd down`else resource group delete will fail. Follow the steps in [Handling Log Analytics Workspace Deletion with Replication Enabled](./LogAnalyticsReplicationDisable.md), waituntil replication returns `false`, then run `azd down`.
213
246
214
247
### 🛠️ Troubleshooting
215
-
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions
248
+
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions
216
249
217
250
## Post Deployment Steps
218
251
@@ -226,6 +259,17 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
226
259
227
260
- Follow steps in [Delete Resource Group](./DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
228
261
262
+
## Deploy Your Local Changes
263
+
264
+
To deploy your local changes, rename the below files:
265
+
266
+
1. Rename `azure.yaml` to `azure_custom2.yaml` and `azure_custom.yaml` to `azure.yaml`.
267
+
268
+
2. **Go to `infra` directory:**
269
+
- Rename `main.bicep` to `main_custom2.bicep` and `main_custom.bicep` to `main.bicep`.
270
+
271
+
3. Continue with the [deploying steps](#deploying-with-azd).
272
+
229
273
## Environment configuration for local development & debugging
230
274
> Set APP_ENV in your .env file to control Azure authentication. Set the environment variable to dev to use Azure CLI credentials, or to prod to use Managed Identity forproduction. **Ensure you're loggedin via az login when using dev in local**.
231
275
To configure your environment, follow these steps:
-[Microsoft ODBC Driver 17](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16) for SQL Server.
20
+
21
+
22
+
## Setup Steps
23
+
24
+
### Clone the Repository
25
+
26
+
Choose a location on your local machine where you want to store the project files. We recommend creating a dedicated folder for your development projects.
27
+
28
+
#### Using Command Line/Terminal
29
+
30
+
1.**Open your terminal or command prompt. Navigate to your desired directory and Clone the repository:**
> **Note**: Make sure your virtual environment is activated before running these commands. You should see `(.venv)` in your terminal prompt when the virtual environment is active.
135
+
136
+
The App will run on `http://127.0.0.1:50505/#/` by default.
# 🛠 Handling Log Analytics Workspace Deletion with Replication Enabled
2
+
3
+
If redundancy (replication) is enabled for your Log Analytics workspace, you must disable it before deleting the workspace or resource group. Otherwise, deletion will fail.
4
+
5
+
## ✅ Steps to Disable Replication Before Deletion
6
+
Run the following Azure CLI command. Note: This operation may take about 5 minutes to complete.
7
+
8
+
```bash
9
+
az resource update --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --set properties.replication.enabled=false
10
+
```
11
+
12
+
Replace:
13
+
-`{subscriptionId}` → Your Azure subscription ID
14
+
-`{resourceGroupName}` → The name of your resource group
15
+
-`{logAnalyticsName}` → The name of your Log Analytics workspace
az resource show --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --query properties.replication.enabled -o tsv
20
+
```
21
+
22
+
## ✅ After Disabling Replication
23
+
You can safely delete:
24
+
- The Log Analytics workspace (manual)
25
+
- The resource group (manual), or
26
+
- All provisioned resources via `azd down`
27
+
28
+
Return to: [Deployment Guide](./DeploymentGuide.md)
0 commit comments