Skip to main content

Task 16: Phase 03 Verification

The automated run does this task for you

The automated OS configuration run covers this task in the verification pass: after the last change every node is read again and compared with the file, and the run ends with a report and an exit code. Use the manual steps below when you can't use the run, or to understand or troubleshoot what it does. See how the run works.

Runbook Phase 03 Platform

DOCUMENT CATEGORY: Runbook SCOPE: Read-only verification of all Phase 03 OS Configuration tasks (01–11) across ... PURPOSE: Read-only verification of all Phase 03 OS Configuration tasks (01–11) across all cluster nodes MASTER REFERENCE: Azure Local Pre-deployment Checklist

Status: Active

Overview​

Read-only verification script that confirms all Phase 03 OS Configuration tasks completed successfully across all cluster nodes. Run this after Task 15 completes — or after running individual tasks — before proceeding to Phase 04 ARC Registration.

Read-only

This script makes no changes to any node. It only reads and reports state.


What Is Verified​

TaskCheckPass Condition
01WinRMService running, HTTP listener active
02RDPRegistry value = 0, firewall rule enabled
03/04Static IP + DHCP disabledIP matches infrastructure.yml, DHCP = Disabled
05DNS serversPrimary and secondary match infrastructure.yml
06DNS resolutionSuccessful DNS lookup
07NTPStratum < 15, source is not Local CMOS Clock or Free-running
08ICMPICMPv4 Echo Request firewall rule enabled
09Unused adaptersNo disconnected adapters still enabled
10HostnameCOMPUTERNAME matches infrastructure.yml hostname
11StorageNo non-primordial pools, no virtual disks, all non-boot local disks online (SAN LUNs on Fibre Channel or iSCSI are excluded and must stay RAW)
DriversNIC drivers (all)No physical adapter reports DriverProvider = Microsoft: Learn says inbox drivers are not supported for Azure Local
12FC HBA Drivers (disaggregated SAN only)FC initiator ports visible via Get-InitiatorPort; iSCSI adapters not on inbox drivers
13MPIO/MSDSM (disaggregated SAN only)MPIO feature enabled; vendor hardware IDs registered and the array disks claimed (one MPIO disk per LUN, not one disk per path)
14LUN Presentation (disaggregated SAN only)Infrastructure and perf-history LUNs RAW, all nodes, correct path count
15Combined ScriptNodes restarted, all baseline config applied

Prerequisites​

RequirementDetails
Phase 03 Tasks 01–15 completeAll OS configuration tasks run
infrastructure.yml populatedAll node IPs, hostnames, network values set
WinRM accessible from management serverRequired for remote checks

Values from infrastructure.yml​

The values for this task come from infrastructure.yml (schema 5). Every key, with its type, default and example, is in the variables reference.


PowerShell​

Two thin wrappers. The task folder scripts/deploy/04-cluster-deployment/phase-03-os-configuration/task-16-phase03-verification/powershell holds Invoke-Phase03Verification-Orchestrated.ps1 and Test-Phase03Verification.ps1 (the same job under a Test- name). They keep the file names this page and the task folder use and run the two schema 5 scripts below, one after the other, both read only. Each step runs even when the other failed.

Script​

ScriptWhat it does
scripts/deploy/04-cluster-deployment/phase-03-os-configuration/task-16-phase03-verification/powershell/Invoke-Phase03Verification-Orchestrated.ps1The wrapper. Step 1: Invoke-AzureLocalOsConfiguration.ps1 in Plan mode with -FailOnPendingChanges. Step 2: Invoke-AzureLocalPreClusterVerification.ps1 in Verify mode with the nodes category. With -ReportDirectory the reports go to its os-configuration and pre-cluster folders. -WhatIf prints the command line of each step and runs none. Exit 0: passed (a partial pre-cluster run with no blocking result counts as 0). Exit 1: a check failed or a node did not converge. Exit 2: bad input, including a missing file.
scripts/deploy/04-cluster-deployment/phase-03-os-configuration/task-16-phase03-verification/powershell/Test-Phase03Verification.ps1The same wrapper under a Test- name. It runs Invoke-Phase03Verification-Orchestrated.ps1 with the same arguments.
scripts/deploy/04-cluster-deployment/phase-03-os-configuration/Invoke-AzureLocalOsConfiguration.ps1In Plan mode (the default) it reads every node and lists what still differs from infrastructure.yml. It changes nothing. -FailOnPendingChanges makes it exit 1 when any change is still pending.
scripts/deploy/04-cluster-deployment/phase-05-cluster-deployment/Invoke-AzureLocalPreClusterVerification.ps1The pre-cluster verification. Read only. Checks ND-001 to ND-012 cover the nodes after this phase.

The wrapper takes -InfrastructureFile (required), -Node, -ReportDirectory, -SettingsFile and -Credential. It never prompts.

Run​

# Both checks in one call (read only)
./Invoke-Phase03Verification-Orchestrated.ps1 -InfrastructureFile ./infrastructure.yml -ReportDirectory ./out

# Or the two scripts one by one
./Invoke-AzureLocalOsConfiguration.ps1 -InfrastructureFile ./infrastructure.yml -FailOnPendingChanges -ReportDirectory ./out

./Invoke-AzureLocalPreClusterVerification.ps1 -InfrastructureFile ./infrastructure.yml -Mode Verify -Category nodes

Expected Output​

A passing run of the script on the Direct tab produces a result like:

[2026-03-07 14:30:00] [----] ================================================================
[2026-03-07 14:30:00] [----] Phase 03 OS Configuration — Verification (Tasks 01–11)
[2026-03-07 14:30:00] [----] ================================================================
...
[2026-03-07 14:30:05] [----] NODE: iic-azl-n01 (192.0.2.11)
[2026-03-07 14:30:05] [----] ================================================================
[PASS] Task01_WinRM PASS (Service=Running, Listener=Active)
[PASS] Task02_RDP PASS (Reg=0, FWRules=3)
[PASS] Task0304_StaticIP PASS (IP=192.0.2.11 DHCP=Disabled)
[PASS] Task05_DNS PASS (192.0.2.4, 192.0.2.5)
[PASS] Task06_DNSResolve PASS
[PASS] Task07_NTP PASS (Stratum=4 Source=192.0.2.4)
[PASS] Task08_ICMP PASS (2 rule(s) enabled)
[PASS] Task09_Adapters PASS (No disconnected adapters still enabled)
[PASS] Task10_Hostname PASS (iic-azl-n01)
[PASS] Task11_Storage PASS (4 non-boot disk(s) clean and online)
...
[2026-03-07 14:31:50] [PASS] All 4 node(s) passed Phase 03 verification.

Interpreting Results​

ResultMeaningAction
PASSCheck succeededNone
WARNNon-critical issue (e.g. storage pools present, adapter not fully cleaned up)Review before proceeding
FAILCheck failed — configuration is incorrectRe-run the relevant task

Common Failures​

CheckFailure MessageResolution
Task0304_StaticIPFAIL: DHCP=EnabledRe-run Task 03/04 (static IP)
Task07_NTPFAIL: Source=Local CMOS ClockRe-run Task 07 (NTP). Check NTP server reachability
Task10_HostnameFAIL: Got='WIN-XXXX'Re-run Task 10 (hostname rename) and reboot node
Task11_StorageWARN: Pools=1 VDisks=2Run Task 11 (Clear Storage) before proceeding to Phase 04
Connection failsConnection failed: ...Verify WinRM is enabled on the node (Task 01)

Script Reference​

ParameterRequiredDescription
-InfrastructureFileYesPath to infrastructure.yml
-CredentialNoThe nodes' local administrator. Default: identity.local_admin of the file, the password read through its secret reference
-NodeNoLimit the run to these nodes
-FailOnPendingChangesNoPlan mode only: exit 1 when any change is still pending

These are parameters of Invoke-AzureLocalOsConfiguration.ps1:

scripts/deploy/04-cluster-deployment/phase-03-os-configuration/Invoke-AzureLocalOsConfiguration.ps1

Troubleshooting​

IssueCauseResolution
Verification script reports group membership mismatchGPO not yet applied or replication delayRun gpupdate /force on the affected node, wait 60 seconds, then re-run verification
PSRemoting test fails for one or more nodesWinRM service not running or firewall blocking port 5985On the failing node: Enable-PSRemoting -Force; verify firewall rule: Get-NetFirewallRule -Name WINRM-HTTP-In-TCP
Script cannot resolve node hostnameDNS record missing or staleVerify DNS with Resolve-DnsName <hostname>; re-run DNS record creation from Phase 01 Task 03


Alternatives​

The procedures in this task use the methods shown in the tabs above. The toolkit is PowerShell 7 only and has no Bash scripts. A few tasks that act on Azure also have an Azure CLI script written in PowerShell. The script status page of the toolkit lists which task has which script.

← Task 15: Combined Script · ↑ Phase 03 · Phase 04: ARC Registration →


Version Control​

VersionDateAuthorChanges
1.0.02025-03-25Azure Local CloudInitial release
1.2.02026-11-08Azure Local CloudAligned to Azure Local 2610: storage check excludes SAN LUNs (Fibre Channel, iSCSI); inbox NIC driver check added (Learn: DriverProvider Microsoft is unsupported); MPIO check expects claimed disks; Learn links updated