Skip to main content

Bulk agent deployment

Ready-made Windows deployment packages are available for Intune and Configuration Manager, including install, detection, removal and identity-preserving restoration. The Ansible Linux collection supports customer-run service lifecycle management. Deployment enrollment controls are available for Intune, Jamf Pro, Ansible, Configuration Manager and Group Policy.

Jamf/macOS managed packages remain in development. Provider publication and assignment are performed in your management tool; Quantum Ready does not yet create those assignments. In the workspace, open Integrations, find Bulk agent deployment, then choose Manage deployments to prepare, inspect or revoke enrollment authorizations.

Preparation and deployment details open as dedicated workspace pages. Back to deployments returns to the authorization list. Setup fields and any uncertain submission stay in this tab when navigating away; reopening preparation restores them. Reloading clears this draft. Retry same authorization reuses the original identifier and scope, including after returning to the form. Navigating away does not cancel a request already sent; use Refresh in the deployment list to check its result. Successful creation opens that authorization directly.

The deployment list loads up to 50 authorizations per page. Next, Previous, and Refresh retain the current records if loading fails; Retry loading page repeats the failed navigation. On phones, each authorization shows labeled fields without requiring horizontal scrolling.

Prepare enrollment in the workspace​

Workspace administrators can select Intune, Jamf Pro, Ansible, Configuration Manager or Group Policy; choose platform and architecture, fleet group, device limit and an enrollment window; and specify exact TLS/SSH endpoints or absolute source/capture directories. Other capability combinations remain available through the API.

The form creates an authorization, not a provider assignment or installation package. Review its scope and expiry in the deployment details. Device rows distinguish a pending grant, an issued credential awaiting receipt, and confirmed credential receipt. They do not imply agent health or successful discovery. Lists load 50 records at a time. Device-page links retain their cursor in the address, so browser Back can return to the prior page. Device authorization and revocation use short dialogs; returning closes the dialog and refreshes the deployment details. An ambiguous creation failure retries the same request to avoid duplicate plans.

Once a device has an issued agent identity, choose Scan history in its row to review actual scan results. Back to deployment returns to the same device-list page. A device with an expired enrollment window is labeled Enrollment expired and no longer offers grant download. If a credential was issued before the window closed, the row says Credential issued; receipt window closed; the agent may still have a valid credential, so check its scan history separately.

Use Revoke authorization to stop additional enrollment while retaining existing agent credentials. Refresh the list to obtain current device allocation counts.

Authorize a pilot device​

Before issuing a device grant, the current Python bundle and published native scanner 0.26.42 can check the proposed configuration locally:

python scanner/qr.py deployment-enroll --preflight --config agent.json

Use the Python environment prepared by Getting started (python3 on systems where that is its command). Preflight prints JSON with schema, status, ready, enrolled: false and individual checks. Exit 0 means local checks passed; exit 2 means blocked or invalid command usage. It does not require a grant or state directory, contact enrollment, install a service or start discovery. Do not combine it with --grant-file, --run or --once.

This checks configuration and local dependencies under the current account. It does not verify cloud-provider access, service-account access, enrollment or a successful scan. Run the normal enrollment and first-scan checks afterwards. For a native agent, use the same arguments with its executable:

.\quantum-ready.exe deployment-enroll --preflight --config agent.json
./quantum-ready deployment-enroll --preflight --config agent.json

Older 0.26.40 native releases lack this flag; update to a current signed package or use their existing doctor command for its narrower diagnostic checks. For service installation and device-grant handoff, follow the Windows package guide or combined Linux package guide. Preflight alone does not install or enroll the device.

Open a deployment and choose Authorize test device. Enter its name, then download both its device grant and configuration. This allocates one device slot; a failed request retries the same device ID instead of allocating another slot.

The grant contains a secret for this device only. It is downloaded on request and is not shown in the page or stored in browser local/session storage. Keep it out of shared installer packages. If the dialog closes before download, use Download grant beside a pending device. Once enrollment begins, recover from the saved state on that device.

Place the downloaded files in the verified agent bundle folder and rename the selected pair to device-grant.json and agent.json. The commands in Unattended enrollment client protect the grant and create private state for retries. Choose the Windows or Linux binary, or the source-bundle instructions for your system; the binary needs no Python installation.

Pilot authorization does not install an agent or assign a provider policy. Use the unattended client instructions below for the pilot and the controller API for fleets.

Check device enrollment​

To check one device from a deployment controller, use GET /api/v1/agent-deployments/{id}/devices/{deviceId} (platform 0.51.202 onward). This performs a direct indexed lookup instead of paging through the fleet. The JavaScript SDK method is deploymentDevice(planId, deviceId); Python uses deployment_device(plan_id, device_id). Both require a workspace administrator. The response contains the device/grant IDs, name, expiry, enrollment state and an agent ID when one has been issued. It never returns a bootstrap secret or credential.

Controllers must inspect the deployment's revocation/expiry separately. An expired or revoked authorization remains readable for troubleshooting. acknowledged means the device confirmed credential receipt; verify contact and a completed scan separately. A missing device returns 404, while an invalid ID or unexpected query parameter returns 400.

Revoke a device grant​

Choose Revoke grant beside a pending device or a credential awaiting receipt. Review the named device, then confirm. This blocks further redemption and acknowledgement for that device and removes its recoverable encrypted delivery. Other devices in the deployment continue enrolling.

An already issued agent credential remains valid, even if receipt was not yet acknowledged. Revoke that agent separately in the agent fleet when it must stop. Revoked grants retain their allocated slot and cannot be reused to enroll a replacement. Retrying the revocation is safe. The API is DELETE /api/v1/agent-deployments/{id}/devices/{deviceId}; SDK methods are revokeDeploymentDevice and revoke_deployment_device.

Deployment authorization​

An administrator creates a deployment plan with a stable UUID, provider, target platform/architecture, approved scanner capabilities, managed settings, fleet group, maximum device count and expiry (up to seven days). Repeat the same request to recover its result; a changed plan cannot reuse its UUID. A workspace can retain up to 1,000 plans. Each plan can authorize up to 100,000 individual devices. These limits are not a claim of provider or fleet throughput acceptance.

Use POST /api/v1/agent-deployments and keep the returned plan ID. Then call POST /api/v1/agent-deployments/{id}/devices with a stable device UUID and name. Each device receives its own grant ID and enrollment secret. Deliver that secret privately through your management controller; do not put it into a shared package, command line, log, or source repository. A hostname or a device UUID alone does not prove device identity.

Repeated device authorization returns the same grant before redemption begins. Once enrollment has begun, the device must resume using its saved grant rather than ask the controller to create another identity. Device capacity counts allocated grants, even when a device has not installed or connected yet.

Unattended enrollment client​

Scanner 0.26.6 includes deployment-enroll in the source bundle and the signed Windows and Linux x86_64 foreground binaries. Download and verify your release from Agents before running it. The binary needs no Python installation. For source use, prepare the Python environment with the agent setup script.

Your controller delivers a private JSON file containing tenantId, grantId and deviceSecret for this device only. On Windows, disable inheritance on that file and restrict its ACL to the runtime account (SYSTEM and Administrators are allowed). On POSIX systems, use an owner-only file and a private mode-700 state directory. Run enrollment as the account that will run the agent, not as a different installer account: Windows state uses that account's DPAPI protection.

Prepare the local configuration with managedConfiguration: true, a source label, pollSeconds, and the approved scope arrays. It must encompass the deployment plan's scope. Local preflight checks run before requesting a credential.

Windows binary​

From the verified binary folder, with the downloaded agent.json and device-grant.json beside quantum-ready.exe, run this in PowerShell. It protects the grant, enrolls, and removes the grant only after enrollment succeeds:

$deploymentGrant = (Resolve-Path -LiteralPath .\device-grant.json).Path
$deploymentState = Join-Path (Get-Location).Path '.quantum-ready-deployment'
$deploymentAccount = [Security.Principal.WindowsIdentity]::GetCurrent().Name
icacls.exe $deploymentGrant /inheritance:r /grant:r "${deploymentAccount}:F"
if ($LASTEXITCODE -ne 0) { throw 'Could not protect the device grant.' }
.\quantum-ready.exe deployment-enroll --config .\agent.json --state-directory $deploymentState --grant-file $deploymentGrant
if ($LASTEXITCODE -ne 0) { throw 'Enrollment did not finish. Keep the grant and state, then retry this command.' }
Remove-Item -LiteralPath $deploymentGrant

Resume from the same folder and Windows account. No grant is needed:

$deploymentState = Join-Path (Get-Location).Path '.quantum-ready-deployment'
.\quantum-ready.exe deployment-enroll --config .\agent.json --state-directory $deploymentState --run

For the Windows source bundle, first prepare its environment without starting interactive enrollment:

py -3.12 scanner/setup_python.py

Then run these same arguments with .\.venv\Scripts\python.exe -I scanner\qr.py in place of .\quantum-ready.exe.

Transfer Windows enrollment to the service​

The signed Windows installer 0.51.205 / sequence 349 can provision service inputs directly from completed enrollment state. Use the Windows foreground agent's deployment-enroll command above first. Keep the approved agent.json and its state directory together in a private folder.

From the separately downloaded and verified installer folder, run an elevated PowerShell terminal as the same Windows account that completed enrollment. For example, if enrollment files are in C:\QscanEnrollment:

.\quantum-ready-service.exe setup --endpoint https://qscan.dev --config C:\QscanEnrollment\agent.json --deployment-state C:\QscanEnrollment\.quantum-ready-deployment
if ($LASTEXITCODE -ne 0) { throw 'Service setup did not finish. Preserve the enrollment state and review the reported error.' }

Then follow the Windows service installation instructions with the reviewed signed service-agent release. Setup alone does not register or start the service. It decrypts the completed enrollment under the enrolling account and writes the installer's protected credential for the restricted service identity. Do not extract or copy a plaintext credential. Keep the saved enrollment state private for recovery; copying it to a different account will not transfer its DPAPI protection. A management tool running setup as SYSTEM must also perform enrollment as SYSTEM.

The installer rejects incomplete or expired enrollment, a changed configuration, and combining --deployment-state with --token-file. Native Windows Server acceptance covered this handoff, disabled installation, signed upgrade and removal using a synthetic credential. Intune/Configuration Manager policy assignment is a separate integration step and is still being built.

Linux binary​

Use the signed Linux x86_64 agent 0.26.6 / sequence 346 on Ubuntu 24.04. From its verified bundle folder, place the downloaded agent.json and device-grant.json beside quantum-ready. Run as the non-root account that will operate this foreground agent:

deployment_grant="$PWD/device-grant.json"
deployment_state="$PWD/.quantum-ready-deployment"
chmod 600 "$deployment_grant" &&
mkdir -p -m 700 "$deployment_state" &&
./quantum-ready deployment-enroll \
--config agent.json --state-directory "$deployment_state" \
--grant-file "$deployment_grant" &&
rm -- "$deployment_grant"

After successful enrollment, resume from the same folder and account:

./quantum-ready deployment-enroll \
--config agent.json --state-directory "$PWD/.quantum-ready-deployment" --run

This path needs no Python and runs in the foreground. The grant is removed only after successful enrollment. If a step fails, preserve the state and retry; the client reuses the same enrolled identity. For a persistent Linux service, use the service credential handoff below with the published compiled installer. Complete enrollment as root in protected staging when preparing a service installation; the foreground example above intentionally uses a non-root account. Do not make another account's state readable to bypass ownership checks.

Linux or macOS source bundle​

Install a supported Python version as described in agent setup, then prepare .venv without starting interactive enrollment:

sh scanner/setup-python.sh

From that bundle folder, with the two downloaded files renamed to agent.json and device-grant.json, run:

deployment_grant="$PWD/device-grant.json"
deployment_state="$PWD/.quantum-ready-deployment"
chmod 600 "$deployment_grant" &&
mkdir -p -m 700 "$deployment_state" &&
.venv/bin/python -I scanner/qr.py deployment-enroll \
--config agent.json --state-directory "$deployment_state" \
--grant-file "$deployment_grant" &&
rm -- "$deployment_grant"

If enrollment fails, the grant and state remain for a retry. After success, resume from the same bundle folder and operating-system account:

.venv/bin/python -I scanner/qr.py deployment-enroll \
--config agent.json --state-directory "$PWD/.quantum-ready-deployment" --run

--run --once performs one foreground polling iteration for diagnostics. It does not create a scan job. Queue an approved agent-targeted job in the workspace and inspect its result. Enrollment emits the agent ID and explicitly leaves scan validation pending; it does not claim installation or scan success.

Keep the same local configuration and state directory on retry. Changing the grant or configuration is rejected; do not erase existing state to resolve a failed request. Network failures preserve pending enrollment; credentials are saved durably before receipt acknowledgement, and acknowledgement retries do not request another agent. The bootstrap secret is removed from saved state once receipt is confirmed.

Windows 11 source and compiled-client acceptance covers protected-file delivery, DPAPI persistence, grant-free resume, centrally managed scope acknowledgement and a real TLS job. Linux compiled-client acceptance also covered private-file permission rejection, non-root enrollment, grant-free resume, managed configuration and a real TLS job. Both compiled checks ran without Python on PATH. Windows Server acceptance separately covered the compiled service credential handoff and local lifecycle with a synthetic credential. Provider-managed assignment and macOS client acceptance remain outstanding.

Windows source installer credential handoff​

The complete signed source bundle from platform 0.51.196 includes the Windows Python service installer and its dependencies, including a handoff from completed unattended enrollment:

python scanner/windows_service.py setup --config agent.json --deployment-state C:\PrivateDeployment\state

Run enrollment and this command as the same deployment account, elevated for service setup. The installer decrypts that account's saved state, checks credential expiry and the exact approved local configuration, then provisions the existing protected service inputs. The token stays in memory until the protected service credential file is written; it is not exported through the command line, environment or logs. The saved enrollment remains available for a retry. The service continues to use its restricted service identity; it does not need access to the installer account's DPAPI state. Do not also provide --token-file.

This operation only provisions service inputs. Continue through signed release verification, service installation, runtime preflight and first-scan checks in the Windows service guide. For the compiled installer, use Transfer Windows enrollment to the service above. Tests cover DPAPI state reading, configuration/tenant/expiry rejection and existing journal recovery; provider-managed installation with this handoff still needs acceptance.

Linux service credential handoff​

The signed compiled Linux installer 0.51.206 / sequence 352 supports completed deployment enrollment state without requiring Python. The source bundle also includes scanner/linux_binary_service.py and its update/supervisor dependencies. For unattended installation, enroll with a root-owned configuration and private root-owned state directory, then use that same directory with the elevated installer. Discovery still runs as the restricted sectigoqr service account.

In your reviewed signed install command, replace --token-file with --deployment-state /absolute/private/enrollment-state. Keep --config, the signed archive, manifest, signature, independently trusted key, expected version and minimum sequence. The installer checks the saved configuration and credential before passing them in memory to its existing service installation transaction. It uses the existing systemd credential delivery; no token enters the unit environment or command line.

--deployment-state is only valid for first installation and cannot be combined with --token-file. Upgrades reuse installed credentials. Private directory ownership and mode, and state-file ownership and mode, are checked. A successful handoff is not proof of cloud contact or a completed scan. Offline Ubuntu 24.04 acceptance with agent 0.26.6 / sequence 346 verified installation from completed enrollment, a running restricted service, credential protection and removal. A separate native lifecycle test verified signed updates, rollback, supervisor recovery and reboot. These tests use synthetic credentials; provider assignment remains unvalidated.

Use Agents & scanners to obtain the current signed Linux installer and its verification commands. The Ansible collection currently accepts individual device credentials; automatic enrollment-state handoff in the role is still being built.

Device redemption and recovery​

The native device client sends its secret in JSON to POST /api/deployment-enrollment/{tenantId}/{grantId}/redeem on https://qscan.dev. Send no browser cookies, Origin, Authorization header or content encoding. This is not an administrator API call and needs no account password.

The response contains one agent credential and the plan's managed settings. Save these durably in protected local storage before calling the corresponding /acknowledge endpoint with the same device secret. Before acknowledgement, redemption retries return the same credential. Acknowledgement removes recoverable delivery. The credential never authorizes workspace administration.

Plan expiry, revocation, workspace suspension or loss of the approving administrator's access stops further redemption. Browser-created plans retain their approval across browser-session expiry, but remain tied to the approving member's authorization version. Plans created by API credentials depend on that credential remaining valid. Expired encrypted delivery is removed in bounded cleanup batches. An archived or revoked agent cannot be revived by replaying its grant.

The initial managed configuration is revision 1. Local installation must approve and apply the exact scope, then report configuration status before claiming work. Enrollment alone does not prove installation, first contact or a successful scan.

SDKs and visibility​

JavaScript SDK methods: createAgentDeployment, agentDeployments, agentDeployment, authorizeDeploymentDevice, deploymentDevices, and revokeAgentDeployment.

Python equivalents: create_agent_deployment, agent_deployments, agent_deployment, authorize_deployment_device, deployment_devices, and revoke_agent_deployment.

List endpoints return at most 100 records per page and a nextCursor. Pass it as after with the same deployment to continue. Device lists expose enrollment state and agent IDs, never secrets or encrypted delivery. Only workspace administrators can create or inspect these plans.

DELETE /api/v1/agent-deployments/{id} revokes the deployment authorization. It does not revoke credentials already saved by enrolled agents. Use the normal agent revocation controls when a running device must lose access.

Until provider deployment packages are delivered, follow the existing agent setup, Windows service and Linux service guides for installation. The enrollment API must not be presented as a completed Intune, Jamf or Ansible integration.

Reuse guided browser enrollment (source installer)​

Source bundle 0.51.258 adds --terminal-state to reuse the identity and exact local configuration saved by qr.py setup. The Windows compiled installer 0.51.258 / sequence 455 also supports this option. Linux compiled installer 0.51.258 / sequence 457 supports it too. It is the transfer step for the unified installer under development, not a completed single-command installation.

Stop the foreground agent and exit guided setup first. Keep its private state folder intact. The installer requires completed credential delivery, the same control-plane origin and the same platform. It reads the saved configuration when --config is omitted; an explicit configuration must match exactly. Changed scope is rejected. No token is exported or passed on the command line, and no second agent is enrolled.

On Windows, use the same Windows account in an elevated terminal (DPAPI state cannot be read by SYSTEM or a different administrator):

python scanner/windows_service.py setup --terminal-state C:\private\qscan-setup

This provisions private service inputs. Continue the existing signed installation procedure; it does not register or start the service by itself. Installed discovery still runs as the restricted service account, whose access can differ from the interactive account. Service preflight must pass before activation.

On Linux, scanner/linux_binary_service.py install accepts --terminal-state instead of --token-file and can load its configuration from that state. Supply the signed agent archive, manifest, signature, trusted key, exact version and minimum sequence as in the existing installation procedure. The state must belong to the installing account with directory mode 700 and file mode 600. Automatic transfer from an unprivileged user's state to root is not implemented; do not relax permissions or copy credentials to bypass that boundary. Existing per-device bulk enrollment remains available for unattended service deployment.

The transfer has Windows DPAPI and Linux private-state tests plus installer command routing tests. Windows compiled installer 0.51.258 additionally passed offline Server 2025 scope rejection, repeat transfer, service installation, upgrade, detection and removal. Linux compiled installer 0.51.258 passed private-state and scope rejection, identity/configuration reuse, restricted systemd startup, secret-log checks and removal in an offline Ubuntu VM. Provider assignment and macOS remain unqualified.

Prepare enrollment for a service package (source CLI)​

Source bundle 0.51.261, scanner 0.26.42, adds:

python scanner/qr.py setup --prepare-service --state-directory /absolute/private/state

On Windows, use an absolute local Windows path. The wizard signs in through the browser, confirms exact scope and optionally validates a scan. It then exits so a service package can reuse the protected enrollment, without starting a foreground agent. Exit 0 means enrollment is ready, 3 means local installation was declined or a hosted cloud connection was chosen, 2 indicates a failed prerequisite or operation, and 130 indicates interruption. Preserve the state directory on retries. This command alone does not install a service. It requires an interactive terminal and is available for Windows and Linux; use deployment enrollment for silent setup.

The Windows package now includes -Action Guided, with enrollment client 0.26.42 and installer 0.51.258. Follow the interactive Windows installation instructions. Existing installs reuse their saved identity and scope. A newly enrolled service still needs restricted-account access checks and a successful scan after installation.