Skip to content
InvardiaInvardia
Why InvardiaProductsFeaturesPricingCommunity
Docs
All documentation
Product documentationPIM ManagerSecurityInsight
SettingsPIM Manager settingsSecurityInsight settingsEntra Policy Suite settings
ScriptsPIM Manager scriptsSecurityInsight scriptsEntra Policy Suite scriptsInvardia scripts
Error codesPIM Manager error codesSecurityInsight error codes
API and MCPPIM Manager APIPIM Manager MCP toolsSecurityInsight APISecurityInsight MCP tools
SecurityPIM Manager security packSecurityInsight security packEntra Policy Suite security pack
Network and designPIM Manager network guidesPIM Manager command wizardNetwork egressDesign your installationCalculate your cost
SupportSetup scriptsRemote support access
Search the docs
SupportAboutContactBook a demoCustomer portalDesign your installationFree Pro trial

SecurityInsight scripts

Set-SICiCutoff

Set the one-time CI cut-off

Purpose

Sets (or takes back) the one-time CI cut-off: the CI build ignores records collected before it and retires at once the CIs built only from them. Plans by default: the CIs that would retire and whether data-out to a CMDB is on.

When to run it

When records of an old collection keep CIs current that are no longer collected, and a full CI build takes too long because of them.

Who may run it

KindRoleScopeWhy
otherthe install identity (service principal + certificate), or the Invardia Support sessionthe Pro databaseto read the CIs and write the cut-off
azureRbacReaderthe Pro SQL serverto check the server's public network access first (a private install is refused, nothing is opened)

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
Pro SQL databaseupdatecfg.InstallState 'CiCutoff': the cut-off time, who set it, whythe Pro databasethe CI build reads it and ignores the records collected before itrun again with -Clear (the row is kept, marked cleared)
Pro SQL databasecreatean audit trail row (cibuild.cutoff.set / cibuild.cutoff.clear)the Pro databasewho set the cut-off, when and whynone: audit rows are kept

What it only reads

  • the cut-off now set
  • the look-back (SI_ActiveStaleDays) and the data-out outputs (SI_DataOut_Outputs)
  • how many CIs would retire (a read-only count)
  • the SQL server's public network access

Parameters

ParameterRequiredDefaultWhat it does
-CutoffUtcnoThe cut-off (UTC; a time without a zone is taken as UTC). Default: now. Never in the future, never older than the look-back.
-ReasonyesWhy (required, at least 10 characters): in the state row, on every CI it retires and on the audit trail.
-ClearnoTake the cut-off back (the row is kept, marked cleared).
-ApplynoWrite. Without it the script only plans.
-SqlServerno[string]$global:SI_ProSqlServer
-Databaseno[string]$global:SI_ProSqlDatabase
-ResourceGroupNameno[string]$global:SI_Bootstrap_ResourceGroupNameThe install's resource group: its database server's public network access is read first (a private install is refused).
-SubscriptionIdno
-InsideNetworknoThis runs INSIDE the install's network (a machine in it, or the install's own job): the private check is not needed.
-SupportSqlnoReach the database through the Invardia Support app's audited SQL (Invoke-InvardiaSupportSql; open the session first).
-AppIdno[string]$global:SI_SPN_AppId
-TenantIdno[string]$global:SI_SPN_TenantId
-CertThumbprintno[string]$global:SI_SPN_CertThumbprint
-StorenoThe database, already open (New-SIProSettingsStore -Invoke ...): a test's fake, or a caller's store.
-NetworkAccessnoTEST SEAM: { } -> the database server's public network access ('Enabled' | 'Disabled' | ...), instead of reading it from Azure.
-PassThruno

Preview with -WhatIf

The preview: the cut-off now set, the look-back, how many CIs would retire and whether data-out to a CMDB is on; nothing is written (same as without -Apply).

Undo

Run again with -Clear. A CI the cut-off already retired stays retired until a source records it again; records are never deleted.

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, 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, outlook.office.com, outlook.office365.com, portal.invardia.com, storage.azure.com, vault.azure.net, www.powershellgallery.com

Download and run

Run these lines in PowerShell: the first downloads the script into the current folder, the second runs it.

Invoke-WebRequest https://invardia.com/support/si/Set-SICiCutoff.ps1 -OutFile Set-SICiCutoff.ps1
.\Set-SICiCutoff.ps1 -Reason <Reason>

To check the download first, compare its SHA-256 with the published one:

SHA-256 0ee990c58e3966680e3c5cfbb006e1593ab7e225cf9cac755422791dd4a5c98e

Checksums: SHA256SUMS.txt · Version 3.0.79

Before you run it, compare the file's SHA-256 with its line in SHA256SUMS.txt.

Every parameter: Get-Help .\Set-SICiCutoff.ps1 -Full · Source: Set-SICiCutoff.ps1

Every script, identity and permission for your security review: SecurityInsight

InvardiaInvardia

See the risk. Control the access.

Products

PIM ManagerSecurityInsightEntra Policy SuiteAll featuresPricingFree 60-day Pro trialBook a demoWhy Invardia

Docs

DocumentationSearch the docsPIM Manager settingsSecurityInsight settingsPIM network guidesCommand wizardNetwork egressPIM Manager design configuratorSecurityInsight design configuratorDesign your installationCalculate your cost

Company

AboutContactCustomer portalSupportHow support worksHow updates reach youSupport in numbersSetup scriptsRemote support accessContact: info@invardia.com

Legal

Terms of saleLicence termsData processingPrivacyCookiesCompany information
© 2026 Invardia – a brand of 2LINKIT, founded and owned by Morten Knudsen · Strandvejen 21A, 6000 Kolding, Denmark · VAT DK39208032 · Contact: info@invardia.com