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: documents/DeploymentGuide.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,7 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
223
223
5. Once the deployment has completed successfully, 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`.
224
224
225
225
6. If you are done trying out the application, you can delete the resources by running `azd down`.
226
+
> **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), wait until replication returns `false`, then run `azd down`.
226
227
227
228
### 🛠️ Troubleshooting
228
229
If you encounter any issues during the deployment process, please refer [troubleshooting](../documents/TroubleShootingSteps.md) document for detailed steps and solutions
# 🛠 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