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

PIM Manager scripts

Invoke-PimHybridWorkerRunCommand

PIM for Active Directory: run the hybrid worker installer through Azure run-command

Part of the PIM Manager release - not a standalone download; it runs via the product's own install command or the updater.

Purpose

Runs the hybrid worker installer on the worker machine (an Azure VM or an Azure Arc-enabled server) through Azure run-command, so nothing inbound is needed, or writes it as a self-contained script for the server's administrator.

When to run it

For each install phase: -Phase Join (Azure VM only, with the offline-join blob), then -Phase Configure after the grants; -Phase Update to move the worker to its ring's version at once. Deploy-PimHybridWorker.ps1 runs it for you.

Who may run it

KindRoleScopeWhy
azureRbacVirtual Machine Contributorthe worker VM (Azure VM)creates and deletes the run-command resource; it runs as SYSTEM on the worker
otherAzure Connected Machine Resource Administrator (Azure RBAC)the Arc machine (Arc)creates and deletes the run-command resource on the Arc machine; it runs as SYSTEM on the server

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
the worker machine's Azure resourcecreatea managed run-command pim-hybrid-worker-<phase> carrying Install-PimHybridWorker.ps1 and its arguments (the offline-join blob only as a protected parameter); DELETED after the rundelivers the install without anything inboundnothing is left; the install phase itself is undone as Install-PimHybridWorker.ps1 describes
this computercreateonly when run-command cannot be used or with -PrintOnly: the self-contained install script (-OutScript), without the secretthe server's administrator runs it locallydelete the file

What it only reads

  • the machine (location; for Arc its status and OS)
  • the run-command result: state, exit code, output, error

Parameters

ParameterRequiredDefaultWhat it does
-SubscriptionIdyesThe machine's subscription; another one is refused.
-TenantIdyesThe tenant.
-MachineResourceIdyesThe worker: .../Microsoft.Compute/virtualMachines/<vm> or .../Microsoft.HybridCompute/machines/<server>.
-PhaseyesJoin (Azure VM only), Configure, Update, Layout, Remove (the worker's tasks and rights on the machine; used by Remove-PimHybridWorker.ps1) Guests (read only: the other products registered on the machine; used by Remove-PimHybridWorker.ps1) or MetadataAccess (Azure VM: re-applies only the rule that limits who may reach the instance metadata service).
-InstallParametersno@{}Install-PimHybridWorker.ps1's parameters (GmsaName, SqlServer, TenantId, SourceContainerUrl, Ring, ...); HostType Arc is added for an Arc machine.
-ProtectedParameterNamesnoOdjBlobArguments sent only as protected (write-only) parameters, never in the script text.
-PrintOnlynofalseDo not use run-command: write the self-contained script.
-OutScriptnopim-hybrid-worker-<phase>-<machine>.ps1 in the current folderWhere the self-contained script is written.
-TimeoutMinutesno45Run-command timeout.
-PollSecondsno15How often the result is read.
-ComputeApiVersionno2024-03-01Microsoft.Compute api-version (Azure VM).
-ArcApiVersionno2024-07-31-previewMicrosoft.HybridCompute api-version (Arc run-command).

Preview with -WhatIf

Reads the machine and prints the run-command it would create; creates nothing and runs nothing.

Undo

The run-command resource is deleted after every run; undo the install phase as Install-PimHybridWorker.ps1 describes.

Network

It connects to: management.azure.com (ARM REST) and login.microsoftonline.com -- browser sign-in or an Invardia support session; nothing to the machine directly; no Azure CLI, no PowerShell module

How it runs

Part of the PIM Manager release - not a standalone download; it runs via the product's own install command or the updater.

Release 3.0.70

Every script, identity and permission for your security review: PIM Manager

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