File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [ ← Back to * DEPLOYMENT* guide] ( ../docs/DeploymentGuide.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/re_use_log/logAnalyticsList.png )
13+
14+ ### 3. Copy Resource ID
15+ In the Overview pane, Click on JSON View
16+
17+ ![ alt text] ( ../docs/images/re_use_log/logAnalytics.png )
18+
19+ Copy Resource ID that is your Workspace ID
20+
21+ ![ alt text] ( ../docs/images/re_use_log/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 [ deployment guide] ( ../docs/DeploymentGuide.md ) .
You can’t perform that action at this time.
0 commit comments