You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow these steps to set up and debug the application locally.
3
+
This guide provides comprehensive instructions for setting up the Document Knowledge Mining Solution Accelerator for local development across Windows, Linux, and macOS platforms.
- Open the **KernelMemory** and **Microsoft.GS.DPS** solutions in Visual Studio.
20
-
- Sign in using your tenant account with the required permissions.
92
+
#### 2. Sign in to Visual Studio using your **tenant account** with the required permissions.
21
93
22
94
---
23
95
@@ -43,16 +115,25 @@ After deploying the accelerator, the `appsettings.Development.json` file will be
43
115
44
116
---
45
117
118
+
46
119
### 5. Assign Required Azure Roles
47
120
48
-
To enable local debugging and ensure your application can access necessary Azure resources, assign the following roles to your Microsoft Entra ID in the respective services within your deployed resource group in the Azure portal:
121
+
> **Important:**
122
+
> These roles are required only for local debugging and development.
123
+
> For production, ensure proper RBAC policies are applied.
49
124
50
-
-**App Configuration**
51
-
- App Configuration Data Reader
52
-
-**Storage Account**
53
-
- Storage Blob Data Contributor
54
-
- Storage Queue Data Contributor
55
-
- Storage Blob Data Reader
125
+
1. Sign in to the [Azure Portal](https://portal.azure.com).
126
+
2. Navigate to your **Resource Group** where services are deployed.
127
+
3. Open the **App Configuration**:
128
+
- Go to **Access control (IAM)** → **Add role assignment**.
129
+
- Assign to:
130
+
`App Configuration Data Reader`
131
+
4. For **Storage Account**:
132
+
- Go to **Access control (IAM)** → **Add role assignment**.
133
+
- Assign to:
134
+
-`Storage Blob Data Contributor`
135
+
-`Storage Queue Data Contributor`
136
+
-`Storage Blob Data Reader`
56
137
57
138
---
58
139
@@ -77,12 +158,16 @@ To enable local debugging and ensure your application can access necessary Azure
77
158
```
78
159
6. Apply the changes.
79
160
161
+
---
162
+
**After running both solutions, two terminal windows will appear. Once the backend starts successfully, Swagger will start at http://localhost:9001. You can now validate the API endpoints from the Swagger UI to ensure that the backend is running correctly.**
163
+
80
164
> **Note:**
81
165
> Always revert this value back to `http://kernelmemory-service` before running the application in Azure.
82
166
83
167
---
84
168
85
-
## Frontend Setup
169
+
170
+
## Step 3: Frontend Setup
86
171
87
172
1. Open the repo in **VS Code**.
88
173
2. Navigate to the `App/frontend-app` folder and locate the `.env` file.
@@ -113,4 +198,65 @@ To enable local debugging and ensure your application can access necessary Azure
113
198
114
199
---
115
200
116
-
**You're now ready to run and debug the application locally!**
201
+
**The application will start at https://localhost:52190. You’re now ready to run and debug the application locally!**
202
+
203
+
---
204
+
205
+
## Troubleshooting
206
+
207
+
### Common Issues
208
+
209
+
210
+
#### Server Not Responded Issues
211
+
212
+
- While running the Kernel solution, if you encounter an error such as **“server not responded”** or **“server not found”**, it usually indicates that the required resource is not responding.
213
+
- Ensure that the necessary **Kubernetes services** are running. If not, start the Kubernetes service and then run the Kernel solution again.
This guide will help you add **PowerShell 7** (PowerShell Core) to your system’s PATH variable on Windows, so you can easily run it from any Command Prompt or Run dialog.
4
+
5
+
## Prerequisites
6
+
7
+
- You should have **PowerShell 7** installed on your machine. If you haven’t installed it yet, you can download it following the guide here: [Installing PowerShell on Windows | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5).
8
+
-**Administrative privileges are not required** unless you're modifying system-wide environment variables. You can modify your **user-specific PATH** without admin rights.
9
+
10
+
## Steps to Add PowerShell 7 to PATH
11
+
12
+
### 1. Open **System Properties**
13
+
- Press `Win + X` and choose **System**.
14
+
- Click on **Advanced system settings** on the left sidebar. This will open the **System Properties** window.
15
+
- In the **System Properties** window, click on the **Environment Variables** button at the bottom.
16
+
17
+
### 2. Edit User Environment Variables
18
+
- In the **Environment Variables** window, under **User variables**, find the `Path` variable.
19
+
- Select the `Path` variable and click **Edit**. (If the `Path` variable doesn’t exist, click **New** and name it `Path`.)
20
+
21
+
### 3. Check if PowerShell 7 Path is Already in PATH
22
+
- Before adding the path, make sure the following path is not already present in the list:
23
+
```
24
+
C:\Program Files\PowerShell\7\
25
+
```
26
+
- If the path is already there, you don't need to add it again.
27
+
### 4. Add PowerShell 7 Path
28
+
- If the path is not already in the list, click **New** in the **Edit Environment Variable** window.
29
+
- Add the following path to the list:
30
+
```
31
+
C:\Program Files\PowerShell\7\
32
+
```
33
+
> **Note:** If you installed PowerShell 7 in a custom location, replace the above path with the correct one.
34
+
### 5. Save Changes
35
+
- After adding the path, click **OK** to close the **Edit Environment Variable** window.
36
+
- Click **OK** again to close the **Environment Variables** window.
37
+
- Finally, click **OK** to exit the **System Properties** window.
38
+
### 6. Verify PowerShell 7 in PATH
39
+
- Open **Command Prompt** or **Run** (press `Win + R`).
40
+
- Type `pwsh` and press Enter.
41
+
- If PowerShell 7 opens, you've successfully added it to your PATH!
42
+
---
43
+
## Troubleshooting
44
+
- **PowerShell 7 not opening:** Ensure the path to PowerShell 7 is entered correctly. If you're using a custom installation folder, check that the correct path is added to the `Path` variable.
45
+
- **Changes not taking effect:** Try restarting your computer or logging out and logging back in for the changes to apply.
0 commit comments