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-SISqlAdminGroup

Make one role-assignable group the Pro SQL server's Entra admin

Purpose

Makes the role-assignable group grp-si-sql-admins (created if missing) the Entra admin of the Pro SQL server, with SecurityInsight's identities as its members.

When to run it

During or after the Pro install when the SQL server's Entra admin must be set or repaired.

Who may run it

KindRoleScopeWhy
entraRolePrivileged Role Administrator (or Global Administrator)the tenantto create a role-assignable group
azureRbacSQL Server Contributor (or Contributor / Owner)the SQL serverto set its Entra admin
otherMicrosoft Graph RoleManagement.ReadWrite.Directory with Group.ReadWrite.All (when an app runs it instead of a person)the tenantto create a role-assignable group without a person's admin role

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
Entra groupcreategrp-si-sql-admins (role-assignable security group)the tenantone named group, the same everywhere, holds the database admin rightdelete the group (after setting another admin)
Entra groupupdatemembers: SecurityInsight's identities (-MemberObjectIds)the groupthe jobs and web app manage the database as adminsremove the members
Azure SQL serverupdatethe Entra admin = grp-si-sql-admins, recorded by the server as a groupthe Pro SQL serverthe database is administered by the group, not by a personset another Entra admin on the server

What it only reads

  • the current Entra admin of the SQL server
  • existing groups and members

Parameters

ParameterRequiredDefaultWhat it does
-SqlServerNameyes
-ResourceGroupNameyes
-SubscriptionIdno
-MemberObjectIdsno@()
-GroupNameno'grp-si-sql-admins'
-DisplayNameno''the display name a NEW group is created with (default: -GroupName). CR5: a new install passes 'SecurityInsight SQL admins'; the mailNickname always follows -GroupName, so every later run finds the group under either name.
-ReplaceCurrentAdminGroupnoThe server's current admin is ANOTHER group (for example the group this one replaces). A role-assignable group cannot contain it, so its members must be in -MemberObjectIds; this switch confirms that they are.

Preview with -WhatIf

Prints the group it would create, the members it would add and the admin it would set; changes nothing.

Undo

Set another Entra admin on the SQL server; remove the members; delete the group.

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, graph.microsoft.com, invardia.com, login.microsoftonline.com, management.azure.com, monitor.azure.com, outlook.office.com, outlook.office365.com, storage.azure.com, vault.azure.net

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-SISqlAdminGroup.ps1 -OutFile Set-SISqlAdminGroup.ps1
.\Set-SISqlAdminGroup.ps1 -SqlServerName <SqlServerName> -ResourceGroupName <ResourceGroupName>

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

SHA-256 09f7a8cfde9cf9962ad520c03256876dce8aa5f0350a11f5ccff8beb3e05f93b

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-SISqlAdminGroup.ps1 -Full · Source: Set-SISqlAdminGroup.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