Skip to content

docs: Created new .md file for reuse log analytics #1817

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/LOCAL_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ The easiest way to run this accelerator is in a VS Code Dev Containers, which wi
1. In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window
1. Run `azd auth login`
1. Run `azd env set AZURE_APP_SERVICE_HOSTING_MODEL code` - This sets your environment to deploy code rather than rely on public containers, like the "Deploy to Azure" button.
1. To use an existing Log Analytics workspace, follow the [setup steps here](../docs/REUSE_LOGANALYTICS.md) before running `azd up`.
Copy link
Preview

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filename in the link (REUSE_LOGANALYTICS.md) does not match the actual file name reuse_loganalytics.md (case-sensitive). Update the link to match exactly.

Suggested change
1. To use an existing Log Analytics workspace, follow the [setup steps here](../docs/REUSE_LOGANALYTICS.md) before running `azd up`.
1. To use an existing Log Analytics workspace, follow the [setup steps here](../docs/reuse_loganalytics.md) before running `azd up`.

Copilot uses AI. Check for mistakes.

1. To use an existing Resource Group, follow the [setup steps here](../docs/re-use-resourcegroup.md) before running `azd up`.
1. Run `azd up` - This will provision Azure resources and deploy the accelerator to those resources.

* **Important**: Beware that the resources created by this command will incur immediate costs, primarily from the AI Search resource. These resources may accrue costs even if you interrupt the command before it is fully executed. You can run `azd down` or delete the resources manually to avoid unnecessary spending.
Expand Down
Binary file added docs/images/Copy-Ws-ID2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/Copy-ws-ID1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/LAWorkspaceList.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions docs/re-use-resourcegroup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[← Back to *LOCAL_DEPLOYMENT* guide](../docs/LOCAL_DEPLOYMENT.md)
Copy link
Preview

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider standardizing link text across both guides (e.g., 'Back to LOCAL_DEPLOYMENT guide') to ensure consistency.

Suggested change
[Back to *LOCAL_DEPLOYMENT* guide](../docs/LOCAL_DEPLOYMENT.md)
[Back to LOCAL_DEPLOYMENT guide](../docs/LOCAL_DEPLOYMENT.md)

Copilot uses AI. Check for mistakes.


# Reusing an Existing Resource Group

To use an existing Azure Resource Group for your deployment, follow these steps:

---

### 1. Identify the Resource Group

- Visit the [Azure Portal](https://portal.azure.com) and choose the Resource Group you want to reuse.
Copy link
Preview

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the leading dash (-) before 'Visit'; it's inconsistent with other step formatting and may render as an unintended list item.

Suggested change
- Visit the [Azure Portal](https://portal.azure.com) and choose the Resource Group you want to reuse.
Visit the [Azure Portal](https://portal.azure.com) and choose the Resource Group you want to reuse.

Copilot uses AI. Check for mistakes.


### 2. Set the Resource Group in your Environment

Before running `azd up`, set the resource group name:

```bash
azd env set AZURE_RESOURCE_GROUP <rg-name>
```
Replace `<rg-name>` with the name of your chosen Resource Group.

### 3. [Optional] Set the Resource Group Location

If you want to specify the location, run:

```bash
azd env set AZURE_LOCATION <location>
```
Replace `<location>` with the desired Azure region.

---

### 4. Continue Deployment

Proceed with the next steps in the [Chat with your data local deployment guide](../docs/LOCAL_DEPLOYMENT.md).
35 changes: 35 additions & 0 deletions docs/reuse_loganalytics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<<<<<<< HEAD
Copy link
Preview

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unresolved Git conflict markers detected. Please remove the <<<<<<<, =======, and >>>>>>> lines and ensure the correct backlink text is retained.

Copilot uses AI. Check for mistakes.

[← Back to *LOCAL_DEPLOYMENT* guide](../docs/LOCAL_DEPLOYMENT.md)

=======
[Go back to *LOCAL_DEPLOYMENT* file](../docs/LOCAL_DEPLOYMENT.md)
>>>>>>> 99b9881f145c21de686c7143bcd6bbf1a223926e
# Reusing an Existing Log Analytics Workspace
To configure your environment to use an existing Log Analytics Workspace, follow these steps:
---
### 1. Go to Azure Portal
Go to https://portal.azure.com

### 2. Search for Log Analytics
In the search bar at the top, type "Log Analytics workspaces" and click on it and click on the workspace you want to use.
Copy link
Preview

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The phrase 'click on it and click on the workspace' is redundant. Simplify to 'select "Log Analytics workspaces" then choose the desired workspace'.

Copilot uses AI. Check for mistakes.


![alt text](../docs/images/LAWorkspaceList.png)

### 3. Copy Workspace id
In the Overview pane, Click on JSON View

![alt text](../docs/images/Copy-ws-ID1.png)

Copy Resource ID that is your Workspace ID

![alt text](../docs/images/Copy-Ws-ID2.png)
Comment on lines +16 to +25
Copy link
Preview

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a descriptive alt attribute (e.g. ![List of Log Analytics workspaces]) to improve accessibility for screen readers.

Suggested change
![alt text](../docs/images/LAWorkspaceList.png)
### 3. Copy Workspace id
In the Overview pane, Click on JSON View
![alt text](../docs/images/Copy-ws-ID1.png)
Copy Resource ID that is your Workspace ID
![alt text](../docs/images/Copy-Ws-ID2.png)
![List of Log Analytics workspaces in Azure Portal](../docs/images/LAWorkspaceList.png)
### 3. Copy Workspace id
In the Overview pane, Click on JSON View
![JSON view in Azure Portal showing Workspace ID](../docs/images/Copy-ws-ID1.png)
Copy Resource ID that is your Workspace ID
![Resource ID copied from Azure Portal](../docs/images/Copy-Ws-ID2.png)

Copilot uses AI. Check for mistakes.


### 4. Set the Workspace ID in Your Environment
Run the following command in your terminal
```bash
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace Id>'
```
Replace `<Existing Log Analytics Workspace Id>` with the value obtained from Step 3.
Comment on lines +30 to +32
Copy link
Preview

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two spaces before 'obtained'; please remove the extra space. Also, standardize 'Id' to 'ID' for consistency.

Suggested change
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace Id>'
```
Replace `<Existing Log Analytics Workspace Id>` with the value obtained from Step 3.
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace ID>'

Replace <Existing Log Analytics Workspace ID> with the value obtained from Step 3.

Copilot uses AI. Check for mistakes.


### 5. Continue Deployment
Proceed with the next steps in the [Chat with your data local deployment guide](../docs/LOCAL_DEPLOYMENT.md).