Skip to content

Commit 7f4a427

Browse files
Prajwal-MicrosoftThanusree-MicrosoftPrasanjeet-MicrosoftRoopan-MicrosoftAjitPadhi-Microsoft
authored
feat: EXP Changes to reuse existing resource group and Log analytics (#1827)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Thanusree-Microsoft <[email protected]> Co-authored-by: Prasanjeet-Microsoft <[email protected]> Co-authored-by: Roopan-Microsoft <[email protected]> Co-authored-by: Ajit Padhi <[email protected]> Co-authored-by: Roopan P M <[email protected]> Co-authored-by: Pavan-Microsoft <[email protected]> Co-authored-by: Ross Smith <[email protected]> Co-authored-by: gpickett <[email protected]> Co-authored-by: Francia Riesco <[email protected]> Co-authored-by: Francia Riesco <[email protected]> Co-authored-by: Harmanpreet-Microsoft <[email protected]> Co-authored-by: UtkarshMishra-Microsoft <[email protected]> Co-authored-by: Priyanka-Microsoft <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kiran-Siluveru-Microsoft <[email protected]> Co-authored-by: Prashant-Microsoft <[email protected]> Co-authored-by: Rohini-Microsoft <[email protected]> Co-authored-by: Avijit-Microsoft <[email protected]> Co-authored-by: RaviKiran-Microsoft <[email protected]> Co-authored-by: Somesh Joshi <[email protected]> Co-authored-by: Himanshi Agrawal <[email protected]> Co-authored-by: pradeepjha-microsoft <[email protected]> Co-authored-by: Harmanpreet Kaur <[email protected]> Co-authored-by: Bangarraju-Microsoft <[email protected]> Co-authored-by: Harsh-Microsoft <[email protected]> Co-authored-by: Kanchan-Microsoft <[email protected]> Co-authored-by: Cristopher Coronado <[email protected]> Co-authored-by: Cristopher Coronado Moreira <[email protected]> Co-authored-by: Vamshi-Microsoft <[email protected]> Co-authored-by: Niraj Chaudhari (Persistent Systems Inc) <[email protected]>
1 parent edb03ab commit 7f4a427

8 files changed

+69
-72
lines changed

docs/LOCAL_DEPLOYMENT.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The easiest way to run this accelerator is in a VS Code Dev Containers, which wi
1212
1. In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window
1313
1. Run `azd auth login`
1414
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.
15+
1. To use an existing Log Analytics workspace, follow the [setup steps here](../docs/re-use-log-analytics.md) before running `azd up`.
16+
1. To use an existing Resource Group, follow the [setup steps here](../docs/re-use-resource-group.md) before running `azd up`.
1517
1. Run `azd up` - This will provision Azure resources and deploy the accelerator to those resources.
1618

1719
* **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.

docs/create_new_app_registration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
![Add Details](images/AddDetails.png)
1818

19-
5. After application is created successfully, then click on `Add a Redirect URL`.
19+
5. After application is created sucessfully, then click on `Add a Redirect URL`.
2020

2121
![Redirect URL](images/AddRedirectURL.png)
2222

docs/images/logAnalytics.png

142 KB
Loading

docs/images/logAnalyticsJson.png

196 KB
Loading

docs/images/logAnalyticsList.png

88.9 KB
Loading

docs/re-use-log-analytics.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[← Back to *LOCAL_DEPLOYMENT* guide](../docs/LOCAL_DEPLOYMENT.md)
2+
3+
# Reusing an Existing Log Analytics Workspace
4+
To configure your environment to use an existing Log Analytics Workspace, follow these steps:
5+
---
6+
### 1. Go to Azure Portal
7+
Go to https://portal.azure.com
8+
9+
### 2. Search for Log Analytics
10+
In the search bar at the top, type "Log Analytics workspaces" and click on it and click on the workspace you want to use.
11+
12+
![alt text](../docs/images/logAnalyticsList.png)
13+
14+
### 3. Copy Workspace id
15+
In the Overview pane, Click on JSON View
16+
17+
![alt text](../docs/images/logAnalytics.png)
18+
19+
Copy Resource ID that is your Workspace ID
20+
21+
![alt text](../docs/images/logAnalyticsJson.png)
22+
23+
### 4. Set the Workspace ID in Your Environment
24+
Run the following command in your terminal
25+
```bash
26+
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace Id>'
27+
```
28+
Replace `<Existing Log Analytics Workspace Id>` with the value obtained from Step 3.
29+
30+
### 5. Continue Deployment
31+
Proceed with the next steps in the [Chat with your data local deployment guide](../docs/LOCAL_DEPLOYMENT.md).

docs/re-use-resource-group.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[← Back to *LOCAL_DEPLOYMENT* guide](../docs/LOCAL_DEPLOYMENT.md)
2+
3+
# Reusing an Existing Resource Group
4+
5+
To use an existing Azure Resource Group for your deployment, follow these steps:
6+
7+
---
8+
9+
### 1. Identify the Resource Group
10+
11+
- Visit the [Azure Portal](https://portal.azure.com) and choose the Resource Group you want to reuse.
12+
13+
### 2. Set the Resource Group in your Environment
14+
15+
Before running `azd up`, set the resource group name:
16+
17+
```bash
18+
azd env set AZURE_RESOURCE_GROUP <rg-name>
19+
```
20+
Replace `<rg-name>` with the name of your chosen Resource Group.
21+
22+
### 3. Set the Resource Group location where the specified resource group exists
23+
24+
If you want to specify the location, run:
25+
26+
```bash
27+
azd env set AZURE_RESOURCE_GROUP_LOCATION <location>
28+
```
29+
Replace `<location>` with the desired Azure region.
30+
31+
---
32+
33+
### 4. Continue Deployment
34+
35+
Proceed with the next steps in the [Chat with your data local deployment guide](../docs/LOCAL_DEPLOYMENT.md).

tests/e2e-test/tests/test_poc_chat_with_your_data.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)