Skip to content

Commit f518a5d

Browse files
docs: add deployment instructions for existing Resource Groups and Log Analytics Workspaces
1 parent 8bb3ce7 commit f518a5d

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

docs/DeploymentGuide.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,67 @@ To adjust quota settings, follow these [steps](./AzureGPTQuotaSettings.md).
134134

135135
</details>
136136

137+
<details>
138+
139+
<summary><b>Deploy in existing Resource Group</b></summary>
140+
141+
To use an existing Azure Resource Group for your deployment, follow these steps:
142+
143+
#### 1. Identify the Resource Group
144+
145+
- Visit the [Azure Portal](https://portal.azure.com) and choose the Resource Group you want to reuse.
146+
147+
#### 2. Set the Resource Group in your Environment
148+
149+
Before running `azd up`, set the resource group name:
150+
151+
```bash
152+
azd env set AZURE_RESOURCE_GROUP <rg-name>
153+
```
154+
Replace `<rg-name>` with the name of your chosen Resource Group.
155+
156+
#### 3. Continue Deployment
157+
158+
Continue with the [deploying steps](#deploying-with-azd).
159+
160+
</details>
161+
162+
<details>
163+
164+
<summary><b>Reusing an Existing Log Analytics Workspace</b></summary>
165+
166+
To configure your environment to use an existing Log Analytics Workspace, follow these steps:
167+
168+
#### 1. Navigate to Azure Portal
169+
Go to [Azure Portal](https://portal.azure.com)
170+
171+
#### 2. Find Your Log Analytics Workspace
172+
- In the search bar at the top, type "Log Analytics workspaces" and select it.
173+
- Click on the workspace you want to use.
174+
175+
![Log Analytics Resource List](../docs/images/logAnalyticsList.png)
176+
177+
#### 3. Copy Workspace id
178+
In the Overview pane, Click on **JSON View**
179+
180+
![Log Analytics](../docs/images/logAnalytics.png)
181+
182+
Copy the **Resource ID** (this is your Workspace ID)
183+
184+
![Log Analytics JSON](../docs/images/logAnalyticsJson.png)
185+
186+
#### 4. Set the Workspace ID in Your Environment
187+
Run the following command in your terminal
188+
```bash
189+
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Workspace Id>'
190+
```
191+
Replace `<Existing Log Analytics Workspace Id>` with the full Resource ID obtained from Step 3.
192+
193+
#### 5. Continue Deployment
194+
Continue with the [deploying steps](#deploying-with-azd).
195+
196+
</details>
197+
137198
### Deploying with AZD
138199

139200
Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure by following these steps:

docs/images/logAnalytics.png

142 KB
Loading

docs/images/logAnalyticsJson.png

196 KB
Loading

docs/images/logAnalyticsList.png

88.9 KB
Loading

0 commit comments

Comments
 (0)