New-SIServiceNowTestPack
Write the ServiceNow test pack
Part of the SecurityInsight release - not a standalone download; it runs via the product's own install command or the updater.
Purpose
Writes the ServiceNow test pack -- example rows on fictional demo data for every object SecurityInsight hands to ServiceNow -- generated from the shipped view definitions and Import Set row functions, into the web app's embedded pack folder. -Check compares only.
When to run it
After changing an import view, a hand-off column or the Import Set rows (a vendor step).
Who may run it
| Kind | Role | Scope | Why |
|---|---|---|---|
| other | write access to the folder | the pack folder (-OutDir) | it writes the pack files |
What it changes
| Where | Action | What | Permission / role | Scope | Why | Undo |
|---|---|---|---|---|---|---|
| the local machine | create | the test pack files in -OutDir (sql\*.csv, rest\*.json, columns.csv, servicenow-test-pack.json, HOW-TO-TEST.md) | the ServiceNow team builds and approves the integration with them | restore the folder from source control |
What it only reads
- the shipped view definitions and the Import Set row functions
Parameters
| Parameter | Required | Default | What it does |
|---|---|---|---|
| -OutDir | no | Where to write. Default: the web app's embedded pack folder. | |
| -Check | no | Write nothing; exit 1 when the files in -OutDir differ from a fresh generation (line ends ignored). |
Preview with -WhatIf
Compares only (as -Check); nothing is written.
Undo
Restore the pack folder from source control.
Network
It connects to: *.blob.core.windows.net, *.queue.core.windows.net, *.table.core.windows.net, *.vault.azure.net, 169.254.169.254, api.loganalytics.io, api.msrc.microsoft.com, api.security.microsoft.com, api.securitycenter.microsoft.com, api.securityplatform.microsoft.com, database.windows.net, entra.microsoft.com, graph.microsoft.com, invardia.com, licenses.nuget.org, login.microsoftonline.com, management.azure.com, monitor.azure.com, nvd.nist.gov, portal.invardia.com, schemas.openxmlformats.org, storage.azure.com, vault.azure.net
How it runs
Part of the SecurityInsight release - not a standalone download; it runs via the product's own install command or the updater.
Release 3.0.79
Every script, identity and permission for your security review: SecurityInsight