Skip to content

Commit 240f5cf

Browse files
Merge all the changes from main
1 parent e2dd7b0 commit 240f5cf

File tree

9 files changed

+92
-50
lines changed

9 files changed

+92
-50
lines changed

docs/DeploymentGuide.md

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ When you start the deployment, most parameters will have **default values**, but
153153
| **GPT Model Capacity** | Sets the GPT model capacity. | 150 |
154154
| **Image Tag** | Docker image tag used for container deployments. | latest |
155155
| **Enable Telemetry** | Enables telemetry for monitoring and diagnostics. | true |
156-
156+
| **Existing Log Analytics Workspace** | To reuse an existing Log Analytics Workspace ID instead of creating a new one. | *(none)* |
157+
| **Existing Azure AI Foundry Project** | To reuse an existing Azure AI Foundry Project ID instead of creating a new one. | *(none)* |
157158

158159
</details>
159160

@@ -176,6 +177,14 @@ To adjust quota settings, follow these [steps](./AzureGPTQuotaSettings.md).
176177

177178
</details>
178179

180+
<details>
181+
182+
<summary><b>Reusing an Existing Azure AI Foundry Project</b></summary>
183+
184+
Guide to get your [Existing Project ID](/docs/re-use-foundry-project.md)
185+
186+
</details>
187+
179188
### Deploying with AZD
180189

181190
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:
@@ -206,43 +215,9 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
206215

207216
5. Once the deployment has completed successfully, 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`.
208217

209-
6. If you are done trying out the application, you can delete the resources by running `azd down`.
210-
211-
### Publishing Local Build Container to Azure Container Registry
212-
213-
If you need to rebuild the source code and push the updated container to the deployed Azure Container Registry, follow these steps:
214-
215-
1. Set the environment variable `USE_LOCAL_BUILD` to `True`:
216-
217-
- **Linux/macOS**:
218-
219-
```bash
220-
export USE_LOCAL_BUILD=True
221-
```
222-
223-
- **Windows (PowerShell)**:
224-
```powershell
225-
$env:USE_LOCAL_BUILD = $true
226-
```
227-
228-
2. Run the `az login` command
229-
230-
```bash
231-
az login
232-
```
233-
234-
3. Run the `azd up` command again to rebuild and push the updated container:
235-
```bash
236-
azd up
237-
```
238-
239-
This will rebuild the source code, package it into a container, and push it to the Azure Container Registry associated with your deployment.
240-
241-
This guide provides step-by-step instructions for deploying your application using Azure Container Registry (ACR) and Azure Container Apps.
242-
243-
There are several ways to deploy the solution. You can deploy to run in Azure in one click, or manually, or you can deploy locally.
218+
6. When Deployment is complete, follow steps in [Set Up Authentication in Azure App Service](../docs/azure_app_service_auth_setup.md) to add app authentication to your web app running on Azure App Service
244219

245-
When Deployment is complete, follow steps in [Set Up Authentication in Azure App Service](../docs/azure_app_service_auth_setup.md) to add app authentication to your web app running on Azure App Service
220+
7. If you are done trying out the application, you can delete the resources by running `azd down`.
246221

247222
# Local setup
248223

331 KB
Loading
94.9 KB
Loading
196 KB
Loading

docs/re-use-foundry-project.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[← Back to *DEPLOYMENT* guide](/docs/DeploymentGuide.md#deployment-steps)
2+
3+
# Reusing an Existing Azure AI Foundry Project
4+
To configure your environment to use an existing Azure AI Foundry Project, follow these steps:
5+
---
6+
### 1. Go to Azure Portal
7+
Go to https://portal.azure.com
8+
9+
### 2. Search for Azure AI Foundry
10+
In the search bar at the top, type "Azure AI Foundry" and click on it. Then select the Foundry service instance where your project exists.
11+
12+
![alt text](../docs/images/re_use_foundry_project/azure_ai_foundry_list.png)
13+
14+
### 3. Navigate to Projects under Resource Management
15+
On the left sidebar of the Foundry service blade:
16+
17+
- Expand the Resource Management section
18+
- Click on Projects (this refers to the active Foundry project tied to the service)
19+
20+
### 4. Click on the Project
21+
From the Projects view: Click on the project name to open its details
22+
23+
Note: You will see only one project listed here, as each Foundry service maps to a single project in this accelerator
24+
25+
![alt text](../docs/images/re_use_foundry_project/navigate_to_projects.png)
26+
27+
### 5. Copy Resource ID
28+
In the left-hand menu of the project blade:
29+
30+
- Click on Properties under Resource Management
31+
- Locate the Resource ID field
32+
- Click on the copy icon next to the Resource ID value
33+
34+
![alt text](../docs/images/re_use_foundry_project/project_resource_id.png)
35+
36+
### 6. Set the Foundry Project Resource ID in Your Environment
37+
Run the following command in your terminal
38+
```bash
39+
azd env set AZURE_ENV_FOUNDRY_PROJECT_ID '<Existing Foundry Project Resource ID>'
40+
```
41+
Replace `<Existing Foundry Project Resource ID>` with the value obtained from Step 5.
42+
43+
### 7. Continue Deployment
44+
Proceed with the next steps in the [deployment guide](/docs/DeploymentGuide.md#deployment-steps).

docs/re-use-log-analytics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[← Back to *DEPLOYMENT* guide](/docs/DeploymentGuide.md#deployment-options--steps)
1+
[← Back to *DEPLOYMENT* guide](/docs/DeploymentGuide.md#deployment-steps)
22

33
# Reusing an Existing Log Analytics Workspace
44
To configure your environment to use an existing Log Analytics Workspace, follow these steps:
@@ -28,4 +28,4 @@ azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '<Existing Log Analytics Worksp
2828
Replace `<Existing Log Analytics Workspace Id>` with the value obtained from Step 3.
2929

3030
### 5. Continue Deployment
31-
Proceed with the next steps in the [deployment guide](/docs/DeploymentGuide.md#deployment-options--steps).
31+
Proceed with the next steps in the [deployment guide](/docs/DeploymentGuide.md#deployment-steps).

src/backend/app_kernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
# Add this near the top of your app.py, after initializing the app
7575
app.add_middleware(
7676
CORSMiddleware,
77-
allow_origins=[frontend_url],
77+
allow_origins=[frontend_url], # Allow all origins for development; restrict in production
7878
allow_credentials=True,
7979
allow_methods=["*"],
8080
allow_headers=["*"],
@@ -269,7 +269,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
269269
if "Rate limit is exceeded" in error_msg:
270270
match = re.search(r"Rate limit is exceeded\. Try again in (\d+) seconds?\.", error_msg)
271271
if match:
272-
error_msg = f"Rate limit is exceeded. Try again in {match.group(1)} seconds."
272+
error_msg = "Application temporarily unavailable due to quota limits. Please try again later."
273273

274274
track_event_if_configured(
275275
"InputTaskError",
@@ -279,7 +279,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
279279
"error": str(e),
280280
},
281281
)
282-
raise HTTPException(status_code=400, detail=f"Error creating plan: {error_msg}") from e
282+
raise HTTPException(status_code=400, detail=f"{error_msg}") from e
283283

284284

285285
@app.post("/api/human_feedback")

src/backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies = [
88
"azure-ai-evaluation>=1.5.0",
99
"azure-ai-inference>=1.0.0b9",
1010
"azure-ai-projects>=1.0.0b9",
11+
"azure-ai-agents>=1.2.0b1",
1112
"azure-cosmos>=4.9.0",
1213
"azure-identity>=1.21.0",
1314
"azure-monitor-events-extension>=0.1.0",

src/backend/uv.lock

Lines changed: 30 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)