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/DeploymentGuide.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,10 +209,11 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
209
209
210
210
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
211
212
-
7. You can now delete the resources by running `azd down`, if you are done trying out the application.
212
+
7. You can now delete the resources by running `azd down`, if you are done trying out the application.
213
+
>**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
214
214
215
### 🛠️ Troubleshooting
215
-
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions
216
+
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions
216
217
217
218
## Post Deployment Steps
218
219
@@ -226,6 +227,17 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
226
227
227
228
- Follow steps in [Delete Resource Group](./DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
228
229
230
+
## Deploy Your Local Changes
231
+
232
+
To deploy your local changes, rename the below files:
233
+
234
+
1. Rename `azure.yaml` to `azure_custom2.yaml` and `azure_custom.yaml` to `azure.yaml`.
235
+
236
+
2. **Go to `infra` directory:**
237
+
- Rename `main.bicep` to `main_custom2.bicep` and `main_custom.bicep` to `main.bicep`.
238
+
239
+
3. Continue with the [deploying steps](#deploying-with-azd).
240
+
229
241
## Environment configuration for local development & debugging
230
242
> 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
243
To configure your environment, follow these steps:
# 🛠 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