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`
118
+
119
+
## Manual Route Context Creation
120
+
121
+
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.
122
+
123
+
## Troubleshooting
124
+
125
+
### Changes not reflected immediately
126
+
127
+
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:
128
+
129
+
1. Wait 20-30 seconds for the cache to refresh
130
+
2. Restart the DMS container if needed:
131
+
132
+
```powershell
133
+
docker restart dms-local-edfi-dm-1
134
+
```
135
+
136
+
### Invalid year range format
137
+
138
+
Ensure your range uses the correct format: `"YYYY-YYYY"` with a hyphen separator.
139
+
140
+
✅ Correct: `-SchoolYearRange "2022-2026"`
141
+
❌ Incorrect: `-SchoolYearRange "2022 2026"` or `-SchoolYearRange "22-26"`
142
+
143
+
## See Also
144
+
145
+
-`Dms-Management.psm1` - PowerShell module with functions for managing DMS instances
146
+
-`test-schoolyear-route.http` - REST Client examples for manual route creation
147
+
-`edfi-school-year-from-spec.js` - Swagger UI plugin for school year selection
0 commit comments