Skip to content

Commit c9e3713

Browse files
Merge branch 'microsoft:main' into main
2 parents 26f1c16 + 7d3f367 commit c9e3713

34 files changed

Lines changed: 3694 additions & 333 deletions

.github/workflows/CI.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ on:
55
- main # Adjust this to the branch you want to trigger the deployment on
66
- dev
77
- demo
8+
paths:
9+
- 'infra/**'
10+
- 'App/**'
11+
- 'Deployment/**'
12+
- 'azure.yaml'
13+
- '.github/workflows/CI.yml'
14+
- '.github/workflows/test-automation.yml'
15+
- 'tests/**'
816
schedule:
917
- cron: "0 10,22 * * *" # Runs at 10:00 AM and 10:00 PM GMT
10-
18+
permissions:
19+
contents: read
20+
actions: read
1121
env:
1222
GPT_CAPACITY: 150
1323
TEXT_EMBEDDING_CAPACITY: 200
@@ -27,12 +37,6 @@ jobs:
2737
- name: Checkout Code
2838
uses: actions/checkout@v5 # Checks out your repository
2939

30-
- name: Install Azure CLI
31-
shell: bash
32-
run: |
33-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
34-
az --version # Verify installation
35-
3640
- name: Install Kubernetes CLI (kubectl)
3741
shell: bash
3842
run: |
@@ -136,10 +140,8 @@ jobs:
136140
- name: Install Bicep CLI
137141
run: az bicep install
138142

139-
- name: Install Azure Developer CLI
140-
run: |
141-
curl -fsSL https://aka.ms/install-azd.sh | bash
142-
shell: bash
143+
- name: Install azd
144+
uses: Azure/setup-azd@v2
143145

144146
- name: Set Deployment Region
145147
run: |
@@ -215,7 +217,7 @@ jobs:
215217
enableRedundancy=false \
216218
enableScalability=false \
217219
createdBy="Pipeline" \
218-
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
220+
tags="{'Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
219221
220222
- name: Get Deployment Output and extract Values
221223
id: get_output
@@ -348,6 +350,7 @@ jobs:
348350
349351
- name: Run Post Deployment Script
350352
shell: pwsh
353+
continue-on-error: true
351354
run: |
352355
Write-Host "Running post deployment script to upload files..."
353356
cd Deployment
@@ -398,12 +401,6 @@ jobs:
398401
VALID_REGION: ${{ needs.deploy.outputs.VALID_REGION }}
399402

400403
steps:
401-
- name: Install Azure CLI
402-
shell: bash
403-
run: |
404-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
405-
az --version # Verify installation
406-
407404
- name: Login to Azure
408405
shell: bash
409406
run: |

.github/workflows/codeql.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@ name: "CodeQL Advanced"
33
on:
44
push:
55
branches: [ "main", "dev", "demo" ]
6+
paths:
7+
- 'App/backend-api/**'
8+
- 'App/frontend-app/**'
9+
- 'App/kernel-memory/**'
10+
- '.github/workflows/codeql.yml'
11+
paths-ignore:
12+
- '**/.gitignore'
13+
- '**/Dockerfile'
14+
- '**/.dockerignore'
615
pull_request:
716
branches: [ "main", "dev", "demo" ]
17+
paths:
18+
- 'App/backend-api/**'
19+
- 'App/frontend-app/**'
20+
- 'App/kernel-memory/**'
21+
- '.github/workflows/codeql.yml'
22+
paths-ignore:
23+
- '**/.gitignore'
24+
- '**/Dockerfile'
25+
- '**/.dockerignore'
826
schedule:
927
- cron: '37 2 * * 5'
1028

.github/workflows/test-automation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ on:
1515
env:
1616
url: ${{ inputs.DKM_URL }}
1717
accelerator_name: "DKM"
18-
18+
permissions:
19+
contents: read
20+
actions: read
1921
jobs:
2022
test:
2123
runs-on: ubuntu-latest

Deployment/appconfig/kernelmemory/appsettings.Development.json.template

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -117,47 +117,32 @@
117117
"BucketName": ""
118118
},
119119
"AzureAISearch": {
120-
"Auth": "ApiKey",
121-
"Endpoint": "",
122-
"APIKey": "",
120+
// Auth and Endpoint are configured in Azure App Configuration
123121
"UseHybridSearch": true
124122
},
125123
"AzureAIDocIntel": {
126-
"Auth": "ApiKey",
127-
"APIKey": "",
128-
"Endpoint": ""
124+
// Auth and Endpoint are configured in Azure App Configuration
129125
},
130126
"AzureBlobs": {
131-
"Auth": "AzureIdentity",
132-
"Account": "",
133-
"Container": "",
134-
"ConnectionString": "",
127+
// Auth, Account, and Container are configured in Azure App Configuration
135128
"EndpointSuffix": "core.windows.net"
136129
},
137130
"AzureOpenAIEmbedding": {
138-
"Auth": "ApiKey",
139-
"Endpoint": "",
140-
"APIKey": "",
141-
"Deployment": "",
131+
// Auth, Endpoint, and Deployment are configured in Azure App Configuration
142132
"MaxTokenTotal": 8191,
143133
"EmbeddingDimensions": null,
144134
"MaxEmbeddingBatchSize": 1,
145135
"MaxRetries": 10,
146136
"APIType": "EmbeddingGeneration"
147137
},
148138
"AzureOpenAIText": {
149-
"Auth": "ApiKey",
150-
"Endpoint": "",
151-
"APIKey": "",
152-
"Deployment": "",
139+
// Auth, Endpoint, and Deployment are configured in Azure App Configuration
153140
"MaxTokenTotal": 128000,
154141
"APIType": "ChatCompletion",
155142
"MaxRetries": 10
156143
},
157144
"AzureQueues": {
158-
"Auth": "AzureIdentity",
159-
"Account": "",
160-
"ConnectionString": "",
145+
// Auth and Account are configured in Azure App Configuration
161146
"EndpointSuffix": "core.windows.net",
162147
"PollDelayMsecs": 100,
163148
"FetchBatchSize": 3,

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.

0 commit comments

Comments
 (0)