Backend Migration Docs for Microsoft Graph Entity Provider

Added section to the migration guide specifically around how to migrate the Microsoft Graph Entity Provider.

Updated current documentation to recommend setting schedule in config rather than code.
Whilst not strictly nessescarry for the migration docs, documenting this way of setting the schedule eases migrations later (since the new backend system only allows setting schedules via config and not code)

Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
This commit is contained in:
Alex Crome
2023-11-14 19:07:32 +00:00
parent 0c4e5b6c6e
commit 129e0f7797
2 changed files with 65 additions and 5 deletions
+4 -5
View File
@@ -34,6 +34,9 @@ catalog:
securityEnabled eq false
and mailEnabled eq true
and groupTypes/any(c:c+eq+'Unified')
schedule:
frequency: PT1H
timeout: PT50M
```
Finally, register the plugin in `catalog.ts`.
@@ -52,11 +55,7 @@ export default async function createPlugin(
builder.addEntityProvider(
MicrosoftGraphOrgEntityProvider.fromConfig(env.config, {
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { hours: 1 },
timeout: { minutes: 50 },
initialDelay: { seconds: 15 },
}),
scheduler: env.scheduler,
}),
);
/* highlight-add-end */