Skip to content

Commit 0a9d7d7

Browse files
Update documentation and add new guides for Azure deployment, including resource deletion and log analytics workspace reuse
1 parent 1185dde commit 0a9d7d7

11 files changed

Lines changed: 489 additions & 171 deletions

azure.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ name: document-knowledge-mining-solution-accelerator
55
requiredVersions:
66
azd: '>= 1.18.0'
77

8-
metadata:
9-
template: document-knowledge-mining-solution-accelerator@1.0
10-
name: document-knowledge-mining-solution-accelerator@1.0
8+
# metadata:
9+
# template: document-knowledge-mining-solution-accelerator@1.0
10+
# name: document-knowledge-mining-solution-accelerator@1.0

docs/AzureAIModelQuotaSettings.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# How to Check & Update AI Model Quota
2+
3+
Please follow [quota check instructions guide](./QuotaCheck.md) to check quota availability by region.
4+
5+
1. **Navigate** to the [Azure AI Foundry portal](https://ai.azure.com/).
6+
2. **Select** the AI Project associated with this accelerator.
7+
3. **Go to** the `Management Center` from the bottom-left navigation menu.
8+
4. Select `Request Quota`
9+
5. Request More Quota with fill up the form for 'Request for Quota Increase' or delete any unused model deployments as needed.

docs/DeleteResourceGroup.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Deleting Resources After a Failed Deployment in Azure Portal
2+
3+
If your deployment fails and you need to clean up the resources manually, follow these steps in the Azure Portal.
4+
5+
---
6+
7+
## **1. Navigate to the Azure Portal**
8+
9+
1. Open [Azure Portal](https://portal.azure.com/).
10+
2. Sign in with your Azure account.
11+
12+
---
13+
14+
## **2. Find the Resource Group**
15+
16+
1. In the search bar at the top, type **"Resource groups"** and select it.
17+
2. Locate the **resource group** associated with the failed deployment.
18+
19+
![Resource Groups](./images/readme/portal_services_resource_groups.png)
20+
21+
![Resource Groups](./images/readme/portal_resource_groups_search.png)
22+
23+
---
24+
25+
## **3. Delete the Resource Group**
26+
27+
1. Click on the **resource group name** to open it.
28+
2. Click the **Delete resource group** button at the top.
29+
30+
![Delete Resource Group](./images/readme/portal_resource_group_delete.png)
31+
32+
3. Type the resource group name in the confirmation box and click **Delete**.
33+
34+
📌 **Note:** Deleting a resource group will remove all resources inside it.
35+
36+
---
37+
38+
## **4. Delete Individual Resources (If Needed)**
39+
40+
If you don’t want to delete the entire resource group, follow these steps:
41+
42+
1. Open **Azure Portal** and go to the **Resource groups** section.
43+
2. Click on the specific **resource group**.
44+
3. Select the **resource** you want to delete (e.g., App Service, Storage Account).
45+
4. Click **Delete** at the top.
46+
47+
![Delete Individual Resource](./images/readme/portal_web_app_delete.png)
48+
49+
---
50+
51+
## **5. Verify Deletion**
52+
53+
- After a few minutes, refresh the **Resource groups** page.
54+
- Ensure the deleted resource or group no longer appears.
55+
56+
📌 **Tip:** If a resource fails to delete, check if it's **locked** under the **Locks** section and remove the lock.

docs/DeploymentGuide.md

Lines changed: 299 additions & 168 deletions
Large diffs are not rendered by default.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Post Deployment Configuration
2+
3+
## Step 1: Execute the Script
4+
5+
### 1.1 Open PowerShell, change directory where you code cloned, then run the deploy script:
6+
7+
```
8+
cd .\Deployment\
9+
```
10+
11+
### 1.2 Choose the appropriate command based on your deployment method:
12+
13+
**If you deployed using `azd up` command:**
14+
```
15+
.\resourcedeployment.ps1
16+
```
17+
18+
**If you deployed using custom templates, ARM/Bicep deployments, or `az deployment group` commands:**
19+
```
20+
.\resourcedeployment.ps1 -ResourceGroupName "<your-resource-group-name>"
21+
```
22+
23+
> **Note:** Replace `<your-resource-group-name>` with the actual name of the resource group containing your deployed Azure resources.
24+
25+
> **💡 Tip**: Since this guide is for azd deployment, you'll typically use the first command without the `-ResourceGroupName` parameter.
26+
27+
If you run into issue with PowerShell script file not being digitally signed, you can execute below command:
28+
29+
```
30+
powershell.exe -ExecutionPolicy Bypass -File ".\resourcedeployment.ps1"
31+
```
32+
33+
### 1.3 You will be prompted for the following parameters with this Screen :
34+
35+
<img src="./images/deployment/Deployment_Input_Param_01.png" width="900" alt-text="Input Parameters">
36+
37+
#### 1.3.1 **Email** - used for issuing certificates in Kubernetes clusters from the [Let's Encrypt](https://letsencrypt.org/) service. Email address should be valid.
38+
39+
<img src="./images/deployment/Deployment_Login_02.png" width="900" alt-text="Login">
40+
41+
#### 1.3.2 You will be prompted to Login, Select a account and proceed to Login.
42+
43+
#### 1.3.3 **GO !** - Post Deployment Script executes Azure Infrastructure configuration, Application code compile and publish into Kubernetes Cluster.
44+
45+
#### 1.3.4 Deployment Complete
46+
#### 🥳🎉 First, congrats on finishing Deployment!
47+
Let's check the message and configure your model's TPM rate higher to get better performance.
48+
You can check the Application URL from the final console message.
49+
Don't miss this Url information. This is the application's endpoint URL and it should be used for your data importing process.
50+
51+
<img src="./images/deployment/Deployment_Screen02.png" alt="Success Deployment" width="900">
52+
53+
### Manual Deployment Steps:
54+
**Create Content Filter** - Please follow below steps
55+
> * Navigate to project in Azure OpenAI, then go to Azure AI Foundry, select Safety + security
56+
> * Click on Create Content Filter and set the filters to a high threshold for the following categories:
57+
```
58+
Hate, Sexual, Self-harm, Violence
59+
```
60+
> * Please select the checkbox of profanity
61+
> * Leave all other configurations at their default settings and click on create
62+
63+
## Step 2: Configure Azure OpenAI Rate Limits
64+
65+
> **Capacity Note:**
66+
> * The deployment script creates models with a setting of 1 token per minute (TPM) rate limit.
67+
> * Faster performance can be achieved by increasing the TPM limit with Azure AI Foundry.
68+
> * Capacity varies for [regional quota limits](https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits#regional-quota-limits) as well as for [provisioned throughput](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/provisioned-throughput).
69+
> * As a starting point, we recommend the following quota threshold be set up for this service run.
70+
71+
| Model Name | TPM Threshold |
72+
|------------------------|---------------|
73+
| GPT-4.1-mini | 100K TPM |
74+
| text-embedding-3-large | 200K TPM |
75+
76+
77+
> **⚠️ Warning:** **Insufficient quota can cause failures during the upload process.** Please ensure you have the recommended capacity or request for additional capacity before start uploading the files.
78+
79+
80+
### 2.1. Browse to the project in Azure AI Foundry, and select **each of the 2 models** within the `Deployments` menu:
81+
<img src="./images/deployment/Control_Model_TPM000.png" alt="Select Model" width="700">
82+
83+
### 2.2. Increase the TPM value for **each model** for faster report generation:
84+
<img src="./images/deployment/Control_Model_TPM001.png" alt="Set Token per minute" width="700">
85+
86+
### 3. Data Uploading and Processing
87+
After increasing the TPM limit for each model, let's upload and process the sample documents.
88+
89+
Execute this command:
90+
91+
<img src="./images/deployment/Deployment_last_step.png" alt="Set Token per minute" width="700">
28.6 KB
Loading
76.6 KB
Loading
48.3 KB
Loading
30.4 KB
Loading
107 KB
Loading

0 commit comments

Comments
 (0)