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
This guide explains how to set up multiple DMS instances with school year routing.
4
+
5
+
## Overview
6
+
7
+
The `start-local-dms.ps1` script now supports automatic creation of multiple DMS instances, each configured with a specific school year route context. This is useful for multi-tenant scenarios where you need to separate data by school year.
8
+
9
+
## Quick Start
10
+
11
+
### Create School Year Instances
12
+
13
+
To create DMS instances for a range of school years, use the `-SchoolYearRange` parameter:
-**No route contexts**: Accessible at `http://localhost:8080/data`
104
+
105
+
## Manual Route Context Creation
106
+
107
+
If you need more complex routing or want to add route contexts manually, you can still use the Configuration Service API. See `test-schoolyear-route.http` in `src/dms/tests/RestClient/` for examples.
108
+
109
+
## Troubleshooting
110
+
111
+
### Changes not reflected immediately
112
+
113
+
After creating instances with route contexts, the DMS may take a moment to refresh its cache. If you don't see the new routes immediately:
114
+
115
+
1. Wait 20-30 seconds for the cache to refresh
116
+
2. Restart the DMS container if needed:
117
+
```powershell
118
+
docker restart dms-local-edfi-dm-1
119
+
```
120
+
121
+
### Invalid year range format
122
+
123
+
Ensure your range uses the correct format: `"YYYY-YYYY"` with a hyphen separator.
124
+
125
+
✅ Correct: `-SchoolYearRange "2022-2026"`
126
+
❌ Incorrect: `-SchoolYearRange "2022 2026"` or `-SchoolYearRange "22-26"`
127
+
128
+
## See Also
129
+
130
+
-`Dms-Management.psm1` - PowerShell module with functions for managing DMS instances
131
+
-`test-schoolyear-route.http` - REST Client examples for manual route creation
132
+
-`edfi-school-year-from-spec.js` - Swagger UI plugin for school year selection
0 commit comments