Skip to content

Running Sonar, stage by stage ​

Sonar follows a zero-touch provisioning (ZTP) run one stage at a time. This page goes through the stages in the order azurelocal-ztp runs them: what the stage does, how to run Sonar for it, what Sonar shows, what done and failed look like, and the access it needs. The stages after ZTP (OS configuration, Validate, Deployment, Update) are at the end, and the modes of the Log access window have their own page.

Sonar only reads. It never starts, retries or repairs a stage: ZTP does that. If you only want the commands per purpose, see Running Sonar, by purpose; how the ZTP event file and the edge machines are read is in Following a ZTP run.

One command for every ZTP stage ​

You do not start Sonar differently for each stage. One Sonar follows the whole run, so start it once, before or during the run, and leave it open:

powershell
Connect-AzAccount -Tenant <tenant-id>
./Start-AzlSonar.ps1 -InfrastructureFile ./infrastructure.yml          # master file, scenario.os_install: simplified
# or, with a config file:
./Start-AzlSonar.ps1 -ConfigPath ./config/clus01.json                  # provisioningRoute: simplified, ztpEvents.path set

Sonar reads two sources at once (see What Sonar reads): the ZTP event file (ztp-events.jsonl, every 2 seconds) and Azure (the edge machines, every pollSeconds). Which stage you are in decides which of the two has anything to show:

StageWhere Sonar sees itWhat you can follow
Resolve, MediaEvent file (stage events only)Log lines StageStarted / StageCompleted
Boot, Bootstrap, VouchersEvent filePer-machine log lines (Mounted, Booting, VoucherWritten, ReadyForPortal ...)
DeviceEvent fileA per-machine step and its log lines
Azure (claim), Ready (Install OS)Azure (edge machines)The machine card, the lifecycle stages and the ProvisionOs job as steps with Azure badges
NetworkEvent file and AzureA per-machine step and its log lines
RestoreEvent file and AzureA per-machine step and its log lines
HandoffEvent file (stage events only)Log lines; the cards read ZTP complete

Start Sonar on the machine where ZTP runs (or one that can read the event file's folder). The path comes from provisioning.simplified.evidence_path in the master file or ztpEvents.path in a config file. Sonar reads the whole file when it starts, so it is safe to start Sonar late: every earlier event is shown at its own time.

Access for all of the ZTP stages: Reader on the resource group of the edge machines and on the managed resource group that holds their Arc machines (Reader on the subscription covers both); Az.Accounts signed in; read access to the event file's folder. No access to the machines is needed: when Sonar asks for the log account, cancel the prompt. There are no node logs to read yet.

The screens below use the page's own demo data (?demo=1&route=simplified); see the tour for each part of the page.

Resolve and Media ​

ZTP does: Resolve finds and verifies the maintenance ISO (its version, URL and SHA-256 go in the stage's evidence). Media builds one virtual USB image per node.

In Sonar: two log lines each, from the file ztp-events: StageStarted and StageCompleted with ZTP's own evidence text. The machine cards still read Waiting to start. Nothing here is a step.

Done: the StageCompleted line for Resolve and for Media. Failed: a StageFailed line (level Error) with the error text. Fix it on the ZTP side and run the stage again (-Stage Media); Sonar shows the new attempt as more lines.

Boot ​

ZTP does: sets the node's temporary BIOS values (for example a Fibre Channel HBA off), attaches the node's image to its BMC's virtual media, sets a one-time boot from it and restarts the node. It saves each BIOS attribute's original value, which Restore puts back later.

In Sonar: log lines per machine: BiosChanged (with each attribute), then, as ZTP's next stage begins to watch, Mounted and Booting. The card still reads Waiting to start: Azure does not know the machine yet.

Done: StageCompleted for Boot, the nodes show Mounted / Booting. Stuck: a warning line ... no change for 20 minutes on the current state; MediaRejected (error) when the image is not inserted after 3 minutes or is write protected. Check the BMC and the image, then rerun -Stage Boot.

Bootstrap ​

ZTP does: waits for each node to run its maintenance environment and write the ownership voucher back into its image. It reads the BMC (virtual media, power state, log entries) and the image; none of it needs a credential on the node.

In Sonar: the node's progress as log lines, in order: NotStarted, Mounted, Booting, MaintenanceEnvironmentRunning, VoucherWritten, ReadyForPortal (a valid voucher in hand and Azure ready to claim it). Choose ztp-events in the file filter to see only these lines; click a machine's card to see only that machine's.

Done: ReadyForPortal for every node. Failed: VoucherMissing (no valid voucher in 90 minutes) or Failed (the 120-minute budget ran out), both level Error and shown in red. Warnings (amber): no change for 20 minutes; a voucher in an image that this run did not build (the evidence says which).

Vouchers (and the claim) ​

ZTP does: the Vouchers stage ejects the image, reads the voucher from it exclusively and writes <media_path>/vouchers/<serial>.pem for each node. The next stage, Azure, claims each machine: it submits the voucher to Azure, which creates the site and the edge machine.

In Sonar: the Vouchers stage writes only StageStarted / StageCompleted lines. The claim is visible in Azure terms: when Azure creates the edge machine, the card changes from Waiting to start to Being created in Azure (Creating) and the machine gets its Azure steps. Vouchers themselves never appear anywhere, only their SHA-256 in ZTP's lines.

Done: the card moves past Waiting to start. Failed: StageFailed on Vouchers (no voucher in 120 minutes: the error names each node's last image status) or on Azure (the claim deployment failed). Sonar needs Reader on the resource group for the edge machines, and shows nothing for them until they exist (a 404 on the edge machine call means "nothing yet", not an error).

Device ​

ZTP does: before the claim, in the maintenance environment, through the Configurator service on port 20001, sets the static management address on the port with the management MAC (and finds the maintenance environment by scanning for that MAC when the file gives no address). It sends no host name.

In Sonar: a per-machine step, Management address (maintenance environment), shown first in the machine's steps, even before the edge machine exists. Its events appear as children: DeviceConfigurationSubmitted, DeviceConfigurationStatus, DeviceAddressSet. The card says Waiting on the node: management address while it runs. Click the step: the live logs filter to that machine's Device events.

Done: the step is green with Address set (or Address already set, or Address reported, not changed for a DHCP, DHCP-reservation or preconfigured node). Skipped is normal when the node has no maintenance address: the Network stage does the job later. Failed: DeviceConfigurationFailed: the scan did not find the node, no adapter has the management MAC, or the status reported a failure. The step turns red with the text, the machine becomes an error.

Install OS (Azure and Ready) ​

ZTP does: after the claim, Azure registers the maintenance environment, installs the operating system and connects the machine to Arc. ZTP's Ready stage waits for it (up to 180 minutes) and resubmits the ProvisionOs job once if it fails.

In Sonar: this is the part where Sonar's own Azure reads do the work. The machine card shows the lifecycle in plain words (Being created in Azure, Waiting to connect to Azure, Registering with Azure, Ready to install the OS, Installing the OS, Provisioned), the Arc connection and a progress bar. The Steps box has Azure's lifecycle stages (ProvisionMachine: RegisterMachine, ArcEnableMaintenanceEnvironment, InstallExtensions; InstallOs: Initialize, DownloadOs, PrepareOs, RebootOs, InstallExtensions, Finalize) and the ProvisionOs job with its steps, each with an Azure badge, status, times and error text. Click an Azure step to see what Azure says about it; the logs are left alone because an Azure step writes nothing to a node log.

Done: Provisioned on the card and the job succeeded. (With the event file, the machine then waits on Network and Restore before it is complete.) Failed: the card turns red with the error; Sonar treats a job error as current only while the job reports failure. After ZTP's single resubmit the earlier error moves to previousErrors and the machine is running again (see previousErrors). On live runs error 5901 at SetupHybridComputeRP was the usual first-attempt failure.

Network ​

ZTP does: after the OS install (which resets every port to DHCP), checks that the management port, found by MAC, has the file's address. It is verify-only by default: a static address that the install reset is left to OS configuration to set, and ZTP says so.

In Sonar: the per-machine step Management address on the management NIC, after the ProvisionOs job. The card says Waiting on ZTP: management address check until it ends. The states: ManagementAddressSet, ManagementAddressAlreadySet, ManagementAddressReported (a warning in the event file when the port does not have the expected address) and ManagementAddressDeferredToOsConfiguration all count as done; the step's label for the last one is Checked; OS configuration sets the address.

Done: the step is green. Failed: ManagementAddressFailed (no adapter has the MAC, or a job failed): red, with the reason. Normal, not a problem: a Deferred result with a warning line such as ... has DHCP 192.0.2.116 after the install; expected static 192.0.2.11. OS configuration (the next step after ZTP) sets the address.

Restore ​

ZTP does: where it set temporary BIOS values for the install, puts back the final values over Redfish, restarts the node, and waits for Arc to report a new connection and the machine to be ready again. All nodes restart at the same time on purpose.

In Sonar: the per-machine step BIOS restored, last in the machine's steps: BiosRestoreStarted (the attributes), then BiosRestored (BIOS restored and Arc connected again). The card says Waiting on ZTP: BIOS restore. During the restart the node may be unreachable and Arc reads Connected for a while (Sonar waits for ZTP's event, not for Arc alone). Without temporary BIOS values the run writes no Restore event, and once the stage is over the step reads Not applicable: the run set no temporary BIOS values (skipped).

Done: the step is green or skipped. Failed: BiosRestoreFailed: red, with the reason and the outcome per node (a node marked Restored has already restarted). Fix the BIOS or the saved original, then run -From Restore: a node whose BIOS is already right is left alone.

Handoff ​

ZTP does: writes the handoff file (the Arc machine names and IDs, the installed build, each machine's management address result and restored BIOS values) and the cluster inputs for OS configuration and the deployment. It ends the run with ZTP is done and Next: OS configuration. After Handoff, ZTP writes files only.

In Sonar: StageCompleted for Handoff, and the end of the run on the page: when every machine is Provisioned, its Network step succeeded and its Restore step succeeded or is not applicable, each card reads ZTP complete with Next: OS configuration, the Provisioning tile reads ZTP complete, and the summary says "ZTP is complete: all N machines are provisioned. Next: OS configuration". A link under the header opens the OS configuration guide.

What to do: nothing in Sonar. ZTP's job is over. Start OS configuration (OEM drivers, C:\SBE, DHCP off, DNS and time, the deployment admin), then Validate. Sonar stays at ZTP complete until the OS configuration run starts and writes its events (the OS configuration mode takes over), then Validate.

Discovery ​

The first stage of the flow, before ZTP: the toolkit's Invoke-HardwareDiscovery.ps1 reads every node's Dell iDRAC (Redfish, read only) and writes, in its -OutputPath folder, one <ServiceTag>.json per node and discovery-summary.json (written after the last node). Sonar follows that folder (discoveryPath; with the master file it is hardware.discovery.output_directory when the file sets it, relative to the folder of the master file, else the discovery folder inside provisioning.simplified.evidence_path). It reads the files, never an iDRAC, and parses a file again only when it changes. Both file versions of the toolkit are read: schemaVersion 1.0 (NetworkPorts, Boss) and 2.0 (network.adapters[].ports[], storage.bootDevice, bmc.mac).

Per machine the page shows the service tag (the serial number ZTP maps the ownership voucher by), the model and BIOS version, the iDRAC MAC, every network port with its MAC and link state, the suggested management port (and whether it is confirmed or only a guess), and the BOSS card (drives, and whether a virtual disk exists; a card without one gets it from the toolkit's Phase 02 Task 01 before the OS install). Anything to check before ZTP is listed under the machine.

The same folder may hold other files, and Sonar reads or skips each by what it is:

  • A hardware inventory (hardware-inventory-*.json, the toolkit's Get-HardwareInventory.ps1, kind hardware-inventory): a machine that no discovery file names is shown from it (serial number, BMC MAC, ports with MAC, link and speed, the drives on a BOSS controller); for a machine a discovery file names it only fills empty fields. The inventory does not say whether the BOSS card has a virtual disk.
  • AzL Beacon's results (validation-*.json, schemaVersion 1.x, in the folder or its beacon subfolder): shown on the machine with the same serial number (or host name) as a Beacon (pre-deployment checks) step with the verdict, the counts and up to five failed checks with their remedy. A FAIL is a thing to check before ZTP. Beacon results that name no machine of the cluster are a warning. The redacted copy Beacon writes for sharing is skipped.
  • Files of other tools (a Ranger manifest or as-built snapshot, the Environment Checker report) are listed as skipped, never as unreadable.

An old run. When the newest read is more than 7 days old the tile says how old (2 of 2 machines · 16 days old) and the headline says to run the discovery again: what the machines report may have changed, or discoveryPath names an older run. The state stays as read.

StateMeaning
Waiting (grey)discoveryPath is set and the folder is not there yet, or it is there with no discovery file.
RunningSome machines are read and discovery-summary.json, which the toolkit writes last, is not there yet.
FailedA file cannot be read (it is named), or the summary is there and a machine has no record (the run reported it as failed).
DoneEvery machine has a record and the summary is there. Machines with something to check say Check.

Without discoveryPath the Discovery tile is grey and its hover text says how to get its data. While Discovery is the only stage with anything to show, the page opens on it; once ZTP (or OS configuration) starts the page follows that. For a manual install the next step is OS configuration, not ZTP (below).

A manual install (no ZTP) ​

When the master file says scenario.os_install is not simplified (the OS is installed from an ISO, by hand), Sonar does not monitor the install. The Provisioning tile reads Not used: manual install in a neutral state (no progress, no Waiting), the steps box says so, all ZTP wording is hidden for the run, and the page opens on OS configuration (on Discovery first when discovery data exists). Each machine row of OS configuration still shows its method (ZTP or ISO), transport and address source as extra detail. With scenario.os_install: simplified everything is as before.

OS configuration ​

The OS configuration mode: a ZTP machine that converged after a retry, an ISO machine whose drivers step failed, and a ZTP machine still applying

The toolkit does: azurelocal-toolkit's Invoke-AzureLocalOsConfiguration.ps1 configures the operating system of every node after ZTP (or an ISO install) and before Validate: remote management, the management address, DNS, time, the computer name, the domain join, unused adapters, the local administrator, MPIO and the SAN checks, the storage wipe, the SBE package and the OEM drivers, and, for an ISO machine, the Azure Arc registration. It plans first (read only), applies node by node and then proves each node matches the master file. While it runs it appends what it does to the OS configuration event file, os-configuration-events.jsonl (the feed is described in the toolkit's OS configuration guide).

How to run Sonar for it: point Sonar at that file and start it where the file is (or where its folder is shared).

powershell
Connect-AzAccount -Tenant <tenant-id>
./Start-AzlSonar.ps1 -InfrastructureFile ./infrastructure.yml

The event feed Sonar reads ​

One JSON object per line (timestamp, node, stage, step, state, evidence, level, nextAction, method, transport, and from the toolkit's hardened feed runId and seq). osConfigEventsPath can be one file, a folder (every *.jsonl in it, oldest first: the toolkit's one file per run) or a pattern such as os-configuration-events*.jsonl.

  • Runs. The newest run id is the current run and the page shows it under the headline. A new run id starts over (the machines of the earlier run go); a late line of an earlier run is ignored and counted (Older run, ignored). Lines are ordered by seq, a repeated seq is dropped, and a late NodeStarted does not throw away the events already held. A file with no runId is one legacy run, read as before.
  • Every state is shown. Run: RunStarted, PlanCompleted, WipeListPublished, WipeListApproved, WipeListRejected, RunCompleted. Node: NodeStarted, MethodResolved, TransportResolved (the address and where it came from), NodeRetry, NodeRestarting, NodeReconnecting, NodeReconnected, NodeWaiting (the heartbeat: what the host waits for, the phase and the seconds), NodeConverged, NodeFailed, NodeBlocked. Step: StepPlanned, StepSkipped, StepApplying, StepApplied, StepFailed, StepVerified. Domain join: DomainJoinPlanned, DomainJoinApplying, DomainJoined, DomainAdminsConfigured, DomainJoinFailed. Guarded network change: NetworkChangeStaged, NetworkChangeVerifying, NetworkChangeAwaitingConfirm, NetworkChangeCommitted, NetworkChangeRepaired, NetworkChangeRolledBack, NetworkChangeRefused, ObservedCommitted (the guard's status could not be read, but a read of the node shows the change in place: the Network step is applied, as a warning). Transport: StaleRunCommandDeleted, NodeCallAttempt (one per attempt of a call to a node; a failed attempt is a warning and shows on the machine, a good one stays in the log pane), SbeDeliveryProgress (the SBE package copy, every 5 percent; each replaces the one before). Remoting: RemotingProfileResolved, RemotingFirewallChange, RemotingListenerChange, RemotingBootstrap*, TrustedHostsChanged, TrustedHostsRestored. The steps include NicNames (Adapter names, the opt-in adapter renames). The test suite checks every state and step of the toolkit's own registry (Get-AzlOsConfigurationEventState, Get-AzlOsConfigurationStepOrder) against this list. Each has a label, a status and a message (its evidence). A state this Sonar does not know is shown, never dropped: in the machine's newest events marked as not known, under States not known to Sonar and in the log pane. Fields Sonar does not know are ignored.
  • Guarded network change panel. Under the cards: the change id, the old and new address, the phase, the deadline with a countdown while the node waits for the confirmation, the rollback or refusal reason and the node's verdict.
  • Node address. Each card shows the address the run reaches the machine on and how it was found: override, ZTP handoff, Azure Arc machine, infrastructure file or neighbor table by MAC (from the TransportResolved event's addressSource, or found by <source> in its text; a source Sonar does not know is shown as written, none as source not reported).

Unverified against a live run: the field names above come from the toolkit's source (AzlOsConfigurationEvents.psm1, AzlGuardedChange.psm1, AzlDomainJoin.psm1, AzlRemotingSession.psm1) and its design document, not from a recorded run; runId, seq and addressSource are the hardening work in progress.

With the master file the file is os-configuration-events.jsonl in the events folder (deployment.events_directory, else %ProgramData%\AzureLocalToolkit\<cluster.name>\events), where the toolkit run writes it by default. If the toolkit run was given -EventLogPath, or -ReportDirectory without deployment.events_directory in the file, or you use a config file, set osConfigEventsPath (Set-AzlSonarConfig -Key osConfigEventsPath -Value <file>). Sonar tails the file every 2 seconds, read-only. Without it the OS configuration tile stays grey and says how to get the data.

In Sonar: the OS configuration tile (between Provisioning and Validate), the OS configuration mode and its lines in the log pane (file os-config-events, each tagged [osconfig]).

  • The summary box. The run in one sentence (1 of 3 machines converged), then the run state, the machines converged, the wipe list (pending until the listed machines have cleared their storage) and the mode (Plan or Apply). One card per machine: its name, a state chip, the method chip and the transport, the step it is on, the retries and restarts, the account that reads its logs and any warning.
  • The Steps box. One row per machine with its method, transport, versions and the guarded network change; under it, its steps in the order the toolkit runs them: remote management, network, DNS, time, computer name, domain join, unused adapters, local administrator, MPIO, SAN verification, clear storage, SBE package, OEM drivers and Azure Arc registration. Each step has a stage chip and the toolkit's own text: what it found and, for a change, current -> desired. A click on a step shows only that machine's lines for that step in the log pane. A step that runs as an Arc Run Command carries the Azure badge; under the machine, Sonar shows the run command it reads from Azure (machines/{name}/runCommands, read-only) with its state and age, and warns when one has been Creating for more than 10 minutes.

What the stages mean.

StageMeaning
WaitingThe run has not reached this step on this machine.
PlannedThe plan found a difference (StepPlanned, action Change); the current and desired values are in the text. Nothing was changed.
OKThe plan found nothing to change.
ChangingThe apply is changing it now (StepApplying).
AppliedThe apply reports it done (StepApplied); the verification pass has not confirmed it yet.
VerifiedThe verification pass found the step matching the master file (StepVerified).
FailedThe apply or the verification pass failed on it (StepFailed), with the toolkit's reason.
BlockedThe plan cannot go on without you (for example leftover storage with the wipe off).
Not applicableThe step does not apply, with the reason (not selected with -Step, no SBE bundle, the storage wipe is off, the identity design is local).
Verify only: OKZTP did this step (the computer name, the Azure Arc registration); the run checks it and does not change it.

A machine is converged when the toolkit reports NodeConverged for it. The mode is ready when every machine has converged: the tile reads 3 of 3 converged and the summary says Next: Validate. It is information only: Sonar blocks nothing, and Provisioning never stays running because of OS configuration. Validate says it starts after OS configuration has converged on every machine.

Which method, which versions. Each machine says how it was installed: ZTP (provisioned by simplified machine provisioning) or ISO (installed by hand). Before the run has resolved it, Sonar shows the method it expects (from scenario.os_install and from whether ZTP events exist for the machine) marked expected. When the declaration and the evidence disagree the chip says differs from the file and a warning names both; the evidence wins, as it does in the toolkit. The step list follows the method: on a ZTP machine the computer name and the Arc registration are verify only, on an ISO machine they are real steps. A mixed cluster shows both side by side. The machine row and Details show the versions the toolkit reported: the OS (caption, version, build) and the computer name the node reported, the SBE (publisher, family, version, package and how it reaches the node), the master file's schema_version and the toolkit's own version, and the transport (Arc Run Command or WinRM, per machine and per step).

The guarded network change. Changing the management address can cut a node off, so the toolkit applies it as a commit confirmed change: the node snapshots itself, applies, checks itself, and reverts on its own unless the orchestrator confirms in time. Sonar shows it on the Network step and the machine: Staged, Checking the node (NetworkChangeVerifying), Waiting for the confirmation (NetworkChangeAwaitingConfirm, with the time left in the window, ten minutes by default), Committed, Repaired (with the repair rung) and, when it did not hold, Rolled back or Refused with the reason the node gives. A rolled-back or refused change turns the machine red; read the reason, fix the address, the gateway or the VLAN, and run the OS configuration again.

The domain join and the account for the logs. In an Active Directory design the DomainJoin step joins each node to the domain after its name, network, DNS and time (DomainJoinPlanned, DomainJoinApplying, DomainJoined, DomainAdminsConfigured, or DomainJoinFailed with the AD error text). Sonar reads a node's logs with the local account (identity.local_admin, for example azl-admin) until the node has reported both DomainJoined and DomainAdminsConfigured (the step that adds the domain administrators to the node's local Administrators: before that a domain account cannot read the logs). In between the card says joined, waiting for domain administrators. After both, Sonar uses the domain account you supply, NETBIOS\username from identity.active_directory.domain_join_account (never the LCM user), its password read from the Key Vault reference in the file. If a node refuses the domain account, Sonar stops using it for every node (a wrong password counts towards the domain's lockout threshold), goes back to the local account and warns; it tries again once, after a back-off, and stops for good after two rejections until the password changes. See the lockout circuit breaker. The account in use and why (domain-joined: using IIC\svc-join, workgroup: using azl-admin) is on each card, in the Log access window and in Details; the password is never shown. See Log access.

Done: every card reads Converged and the tile is green. Failed: a machine reads Failed, Blocked, Rolled back or Refused, the tile turns red and the summary names the machine. Retrying, not a problem: an Arc Run Command that ends in state Unknown (the node's agent lost its connection, for example while its network changes) is run again up to three times; the card says Retrying and counts the tries, and the verification pass decides the outcome, not the command's status.

What to do when a step is stuck.

  1. Open the machine's steps. The step in Changing is the one running; its time is the time since it began. A step that has run much longer than its neighbours is the one to look at.
  2. Look under the machine for the run command line. Creating for more than 10 minutes means Azure has not handed the command to the node's agent: check that the machine is Connected in Azure Arc, and that nothing blocks its outbound connection. A run command that is Running for long can simply be a long step (the SBE package, the drivers).
  3. Read the lines of that step in the log pane (click the step). A NodeRetry line says the command was lost and is being tried again; three of them in a row end in the verification pass, which reads the node again.
  4. If the step failed, the card and the step carry the toolkit's reason. Fix the cause on the node, then run Invoke-AzureLocalOsConfiguration.ps1 again: steps that are already right are not repeated.
  5. If the run itself died (no RunCompleted line, the last event is old), the machines stay where they were. Start the toolkit run again; its next RunStarted clears the machines it names and the page follows the new run.

Validate and Deployment: the toolkit run ​

The toolkit does: Invoke-AzureLocalArmDeployment.ps1 checks the instance (read only), generates the ARM parameters, submits Validate, waits, asks for approval, submits Deploy and waits, and appends every step to arm-deployment-events.jsonl.

In Sonar: the Validate and Deployment tiles and modes. Before Azure has steps of its own the tiles follow the toolkit (Checking, 2 checks failed, Step 0.4, Failed at 0.41.2); the Steps box lists the checks (failures first) and the validation results or the deployment progress per step with its duration; a failure that matches the toolkit's known-issues list carries a hint, for example the device-ID Arc name problem at step 0.41. Set armEventsPath when the toolkit run used its own report directory. The full description, the states and what Sonar never does are on Validate and Deploy from the toolkit.

The cluster card (Validate, Deployment, Update, Add node, Repair) ​

These modes act on the cluster resource (Microsoft.AzureStackHCI/clusters), so the summary box starts with a cluster card: the cluster name, the resource's status, connectivity, provisioning state, solution version and machine count as Azure reports them, the mode's own result (validation pass and fail counts with the failures first, deployment progress and elapsed time, the update state with current and target version, the add node or repair operation) and the last error. Until Validate creates the cluster the card reads The cluster resource does not exist yet. Selecting it shows the cluster-level steps only. See the tour. Discovery, Provisioning and OS configuration have no cluster card.

After ZTP ​

Next stepIn SonarHow to run it
OS configurationThe OS configuration mode: a card per machine, its steps, the method and versions, the guarded network change and the domain join.The toolkit's Invoke-AzureLocalOsConfiguration.ps1, with Sonar pointed at its event file (osConfigEventsPath). Details.
VerificationThe Verification mode: the pre-cluster verification gate's verdict (Pass, Fail, Running, Expired), the counts by status and the checks by category with their node, message, remedy and source; a skipped check blocks the gate. Before the gate has run, the gate's Plan (which checks would run) is shown as planned, never as Fail.The toolkit's pre-cluster verification gate, with Sonar pointed at its event file (verificationEventsPath). Details.
ValidateThe Validate mode: the toolkit's checks and validation results (ARM run), Azure's validation steps (deploymentSettings), the running step with a live timer, errors expanded. Node logs from the seed node../Start-AzlSonar.ps1 -InfrastructureFile ./infrastructure.yml -Credential (Get-Credential) with the deployment local admin. Details.
DeploymentThe Deployment mode: the toolkit's progress per cluster step with the known-failure hint (ARM run), the nested step tree, the live logs, the account and folders in Log access.The same command. Details.
UpdateThe Update mode: what Azure offers, the readiness checks, the update run's steps and the history. Details.track: update, or auto when Azure reports an update; weeks later, -Monitor Update on its own (Monitoring a monthly update).
Deployed clusterThe Deployment mode in its Done state, with a card per machine that keeps its Arc status. There is no Health mode.Any run on a deployed cluster. Details.

A machine that fails in any stage turns red, the status chip reads Failed, and the page stays on the mode that failed so you can read the text.

Update ​

Azure Local is updated about once a month. The Update tile and mode follow that: what Azure offers, whether an update has run, and while one runs, its steps and the log of the seed node.

A green tab means an update ran. Azure's update summary says AppliedSuccessfully on a cluster that has never been updated, so Sonar does not read that as success. The tab is green only when an update run finished Succeeded (a run in updateRuns, or a lastUpdated together with an update in state Installed when Azure keeps no run) and the summary is back to AppliedSuccessfully. The colour of the tab is the worst of the update's own state and its failed readiness checks:

TabWhenLabel
Grey (neutral)No update has run and nothing is installing. Informational checks are listed but do not colour it.No update has run
AmberAn update cannot start yet (Waiting for content, Needs another update first, Waiting for the hardware vendor), or a readiness check of severity Warning failed.Waiting for content, Readiness warning
Blue (running)An update is preparing or installing.Step 2 of 5
RedAn update failed (InstallationFailed, PreparationFailed, HealthCheckFailed, DownloadFailed, ScanFailed), or a readiness check of severity Critical or Error failed.Failed, Readiness check failed
GreenAn update run finished and the summary is AppliedSuccessfully again.Done

What Azure offers. The Updates Azure offers panel lists every update with its name, version, package type (Solution or SBE), description and what its state means:

Azure stateSonar saysColour
AdditionalContentRequiredWaiting for content: the update package must be added (SBE side-load). The panel links the Learn page that explains how to import the hardware vendor's Solution Builder Extension files.Amber
HasPrerequisiteNeeds another update firstAmber
PendingOEMValidationWaiting for the hardware vendor: the vendor has not yet validated the update for this hardware. The panel links the Learn page on feature release availability. Unverified against a live run.Amber
Ready, ReadyToInstallReady to install; Sonar only watches, the update is started from AzureNeutral
HealthCheckExpiredReady (readiness check expired): Learn 2611 says a ReadyToInstall update moves to this state after three days, and starting it runs the health check again. Unverified against a live run.Neutral
ScheduledToInstallScheduled to install (REST state; unverified against a live run)Neutral
Downloading, Preparing, HealthChecking, ScanInProgressPreparingRunning
Installing, InstallingPerScheduleInstalling, Installing (scheduled) (InstallingPerSchedule is a REST state, unverified against a live run)Running
InstallationFailed, PreparationFailed, HealthCheckFailed, DownloadFailed, ScanFailedThe failure, the failing step and its error. The Learn page on update failures is linked.Red
InstalledInstalledGreen (history)
Obsolete, Invalid, RecalledSuperseded by a newer version, Does not match this hardware, RecalledNeutral
anything elsethe word Azure sentNeutral, never green

Readiness checks. The pre-update checks that failed (healthCheckResult) are listed under the update with their severity, title and remediation link (a link is shown only when it points to a documentation site Sonar knows; otherwise the text). The panel title gives the counts per severity, for example Readiness checks that failed: 1 critical, 2 informational. Critical and Error turn the tab red, Warning amber; Informational is information only.

While an update runs. Auto switches to the Update view when an update starts or its state becomes Preparing or Installing (also on a cluster whose deployment finished long ago). The Steps box shows the update run (updates/<name>/updateRuns) with each machine's steps, and the node log of the seed node follows. Cluster-Aware Updating restarts the machines one after another, so the seed node restarts during the update: the log tile then reads Reconnecting to node logs (not an error), and Sonar continues from the last line it read when the node answers again. The Update history panel lists the earlier runs.

What the cluster says (needs an update account). Azure's update status lags the cluster by many minutes. On 9 Nov 2026 an SBE update spent its first 17 minutes in Preparing and HealthChecking on the cluster while Azure said Ready, and the tab said "Update available, not started". With updateAccount (or -UpdateCredential) Sonar also reads the cluster's own update service on one node, read-only, and shows both:

  • The verdict is the cluster's when it differs from Azure's. The mapping is: Ready is Update available, Preparing is Preparing the update, HealthChecking is Checking update health, HealthCheckFailed is Update health check failed, Installing is Installing <version>, InstallationFailed is Update failed, Installed with a run that Succeeded is Update succeeded, AdditionalContentRequired is Waiting for content, Invalid is Does not match this hardware.
  • Where this comes from shows what the cluster says and what Azure says, and, when Azure is behind, how long: Azure is behind the cluster by 17 minutes.
  • The update run on the cluster shows when it started and finished, how long it ran or took, the steps done so far, the step that runs now, the failed step with its error text, and the solution and SBE version before and after (the version before is only known when Sonar was watching while the run ran).
  • Machines in the update shows each machine as the cluster sees it: Up, Paused (drained for patching), Down (restarting), and the step it is in. The machine cards say Being patched, Restarting, Updated or Waiting.
  • What happened lists update started, update finished or failed, and when a node went Paused or Down. Update history includes the runs the cluster lists.

A node restarts during the update. When the node Sonar reads does not answer, Sonar reads the next one and says so ("n01 did not answer, so n02 was read"). That is information, not an error. When no node answers, the last answer stays for 10 minutes, marked as old. Without an account the tab says "Node-side update reading is off" and why, and shows Azure only.

The toolkit's update events (no Azure needed). The toolkit's solution update scripts write update-events.jsonl into the one events folder (deployment.events_directory, else %ProgramData%\AzureLocalToolkit\<cluster.name>\events; updateEventsPath moves it). The Auto and Update monitors follow it every 2 seconds: each event is an [update] line in the log pane, and when Azure reports no update run (no Azure context, a -WhatIf or plan run, a run the cluster has not reported yet) the Update view shows the run's stages from the file, marked as read from the update events. A plan or -WhatIf run says that nothing was installed. When Azure reports a run, Azure's step tree is shown.

With no Azure sign-in at all. -Monitor Update starts without Connect-AzAccount when the update event file is named (updateEventsPath, or an update-events.jsonl in the events folder of the other toolkit feeds). Sonar then reads the file only: no Azure resource, no node, no node log, no log account. The Update tile and view come from the events, the phase is update (failed when the run failed), and the Azure live poll is marked not connected: a grey note and the cluster card row Azure live poll, update.azure.connected false in the API, pollError stays empty. It is a fact about the sources, not a failure. With a sign-in the same start reads Azure as before and update.azure.connected is true. Auto does not do this: it needs Azure for the deployment. See Follow an update with no Azure sign-in.

What the three scripts write, and what the Update tile shows for it:

Script and modemodeThe tile readsThe stages
Get-AvailableSolutionUpdate.ps1 (the Check of task 01)CheckUpdate available: 12.2611.1004.9; nothing was installed (grey), Up to date (green), an update that is running on the cluster (blue), or The toolkit's update run failed: ... (red) when the verdict is AttentionNeededEnvironment, Discovery (one pair per read) and one Update <version> stage per update that is not finished
Start-AzureLocalSolutionUpdate.ps1 -WhatIfWhatIfPlan complete for 12.2611.1004.9; nothing was installed (grey)Environment and one Update <version> stage (UpdateWouldStart)
Start-AzureLocalSolutionUpdate.ps1InstallUpdate 12.2611.1004.9 was started; the toolkit script does not wait (blue); Azure's own steps and the cluster's reading take over as soon as they reportEnvironment and one Update <version> stage (UpdateStarted)

The run's own lines (step Run: RunStarted, RunCompleted, RunFailed) are the run, not a stage: they set the exit code, the verdict (verdict: UpToDate, UpdateAvailable, AdditionalContentRequired, UpdateRunning, AttentionNeeded) and the time. A closing line never replaces the message of the failed update or environment state before it. The lines use the envelope of every toolkit feed: timestamp, node (* for the run), stage SolutionUpdate, step, state, evidence, level, nextAction, runId, mode (Check, Plan, WhatIf or Install), cluster. RunStarted starts a run, RunCompleted (exitCode) or RunFailed ends it; every other state updates the stage named by step. A stage's status is status when the line gives one, else result (Passed, Failed, Warning, Skipped), else the level, else the last word of the state (...Failed is an error, ...Skipped skipped, ...Started or ...Progress running); updateName and version name the update and progressPercentage is shown. Sonar does not need a fixed list of states.

Not verified on a live update. Waiting for content and the readiness checks were seen on a live 12.2610 cluster. The cluster's update cmdlets and their output were read on a live 12.2610 cluster after a finished SBE update. The step tree of a running update, the per-machine progress and the restart of the seed node on the Azure side are built from the Learn reference and the finished run; Sonar has not yet followed a whole update live from start to end.

Monitoring a monthly update ​

Two ways to follow the monthly update:

  1. Right after a deployment, in the same session (Auto). Nothing to configure: once the deployment is done Sonar reads the update resources. Right after the deployment the page stays on Deployment and the Update tile shows what is waiting; when an update starts it moves to Update by itself.

  2. Standalone, weeks later, against a cluster that is already running. Start Sonar for the update only:

    powershell
    Connect-AzAccount
    ./Start-AzlSonar.ps1 -ConfigPath ./config/update.json -Monitor Update -Credential (Get-Credential) -UpdateCredential (Get-Credential)

    -UpdateCredential is the deployment account that reads the cluster's own update service; leave it out (and updateAccount unset) and Sonar shows what Azure reports, which can be many minutes behind.

    With -Monitor Update Sonar reads the cluster resource, the Arc machine of each node, the update resources and the log of the seed node, and the toolkit's update event file when updateEventsPath names one. It reads no deployment settings, edge machines, ARM deployments or other event files, so no old deployment tree appears and the config needs none of the deployment, provisioning, ZTP, OS configuration or ARM keys. The minimal config is five settings and a node.

    With no Azure sign-in, -Monitor Update still starts when the update event file is named: it shows the toolkit's update events alone and marks the Azure live poll as not connected (details).

    Auto against a cluster whose deployment finished more than 24 hours ago also lands on the Update view when an update is waiting for content or ready (a running update always does).

Running without a deployment: demo and replay ​

Neither needs Azure or a node. Use them to learn the page or to review a finished run, stage by stage.

powershell
./Start-AzlSonar.ps1 -Replay ./recordings/clus01.jsonl -Speed 240 -StartAt deployment

Or open http://localhost:8642/?demo=1&route=simplified on a running Sonar for the built-in three-machine ZTP sample (route=oem for the OEM image route, ?demo=1 for a deployment, ?demo=1&replay=1 for the replay bar). A replay has a transport bar (play, speed, scrubber with markers, jump to a phase); see Record and share a session.

Released under the MIT License.