-
Notifications
You must be signed in to change notification settings - Fork 173
chore: merge dev into main #791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2b91977
0820160
0e7ca15
7e36e63
322114d
8b74a26
2adf0da
4b40db2
6cfd2fe
58fb2f9
7b5355f
5590128
98d9de6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -236,7 +236,8 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain | |||||
| 5. Once the deployment is complete, please follow the [Import Sample Data](#post-deployment-steps) instructions under **Post Deployment Steps** to load the sample data correctly. | ||||||
| 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`. | ||||||
| 7. Test the app locally with the sample question with any selected client: _Show latest asset value by asset type?_. For more sample questions you can test in the application, see [Sample Questions](SampleQuestions.md). | ||||||
| 8. You can now delete the resources by running `azd down`, if you are done trying out the application. | ||||||
| 8. You can now delete the resources by running `azd down`, if you are done trying out the application. | ||||||
| > **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`. | ||||||
|
||||||
| > **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`. | |
| > **Note:** If you deployed with `enableRedundancy=true` and Log Analytics workspace replication is enabled, you must first disable replication before running `azd down`, otherwise resource group deletion 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`. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # 🛠 Handling Log Analytics Workspace Deletion with Replication Enabled | ||
|
|
||
| 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. | ||
|
|
||
| ## ✅ Steps to Disable Replication Before Deletion | ||
| Run the following Azure CLI command. Note: This operation may take about 5 minutes to complete. | ||
|
|
||
| ```bash | ||
| az resource update --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --set properties.replication.enabled=false | ||
| ``` | ||
|
|
||
| Replace: | ||
| - `{subscriptionId}` → Your Azure subscription ID | ||
| - `{resourceGroupName}` → The name of your resource group | ||
| - `{logAnalyticsName}` → The name of your Log Analytics workspace | ||
|
|
||
| Optional: Verify replication is disabled (should output `false`): | ||
| ```bash | ||
| az resource show --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --query properties.replication.enabled -o tsv | ||
| ``` | ||
|
Comment on lines
+8
to
+20
|
||
|
|
||
| ## ✅ After Disabling Replication | ||
| You can safely delete: | ||
| - The Log Analytics workspace (manual) | ||
| - The resource group (manual), or | ||
| - All provisioned resources via `azd down` | ||
|
|
||
| Return to: [Deployment Guide](./DeploymentGuide.md) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation correctly describes the new
AZURE_ENV_COSMOS_SECONDARY_LOCATIONparameter, but there's a minor inconsistency:Line 13 states the primary Cosmos location defaults to "Same as resource group location", but the actual Bicep code (infra/main.bicep:13) uses
resourceGroup().locationwhich is the same thing. However, the description could be clearer by stating it explicitly matches theAZURE_LOCATIONvalue when not specified, since users setAZURE_LOCATIONto determine the resource group location.Also consider clarifying that both locations should support zone redundancy when
enableRedundancy=true, as mentioned in the link provided.