Task 16: Phase 03 Verification
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.
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.
This script makes no changes to any node. It only reads and reports state.
What Is Verified
| Task | Check | Pass Condition |
|---|---|---|
| 01 | WinRM | Service running, HTTP listener active |
| 02 | RDP | Registry value = 0, firewall rule enabled |
| 03/04 | Static IP + DHCP disabled | IP matches infrastructure.yml, DHCP = Disabled |
| 05 | DNS servers | Primary and secondary match infrastructure.yml |
| 06 | DNS resolution | Successful DNS lookup |
| 07 | NTP | Stratum < 15, source is not Local CMOS Clock or Free-running |
| 08 | ICMP | ICMPv4 Echo Request firewall rule enabled |
| 09 | Unused adapters | No disconnected adapters still enabled |
| 10 | Hostname | COMPUTERNAME matches infrastructure.yml hostname |
| 11 | Storage | No 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) |
| Drivers | NIC drivers (all) | No physical adapter reports DriverProvider = Microsoft: Learn says inbox drivers are not supported for Azure Local |
| 12 | FC HBA Drivers (disaggregated SAN only) | FC initiator ports visible via Get-InitiatorPort; iSCSI adapters not on inbox drivers |
| 13 | MPIO/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) |
| 14 | LUN Presentation (disaggregated SAN only) | Infrastructure and perf-history LUNs RAW, all nodes, correct path count |
| 15 | Combined Script | Nodes restarted, all baseline config applied |
Prerequisites
| Requirement | Details |
|---|---|
| Phase 03 Tasks 01–15 complete | All OS configuration tasks run |
infrastructure.yml populated | All node IPs, hostnames, network values set |
| WinRM accessible from management server | Required 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.
- Orchestrated Script
- Direct (On Node)
PowerShell
Two thin wrappers. The task folder
scripts/deploy/04-cluster-deployment/phase-03-os-configuration/task-16-phase03-verification/powershellholdsInvoke-Phase03Verification-Orchestrated.ps1andTest-Phase03Verification.ps1(the same job under aTest-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
| Script | What it does |
|---|---|
scripts/deploy/04-cluster-deployment/phase-03-os-configuration/task-16-phase03-verification/powershell/Invoke-Phase03Verification-Orchestrated.ps1 | The 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.ps1 | The 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.ps1 | In 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.ps1 | The 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
Run locally on each node to verify its own configuration. Set all REPLACE_ variables before running.
# Task 16 - Phase 03 Verification (direct, run on each node)
# Set all REPLACE_ variables before running
$ExpectedIP = "REPLACE_WITH_STATIC_IP" # nodes[].network_adapters[].ip_address
$ExpectedHostname = "REPLACE_WITH_HOSTNAME" # nodes[].name
$ExpectedDNS1 = "REPLACE_WITH_DNS_PRIMARY" # networking.management.dns_servers
$ExpectedDNS2 = "REPLACE_WITH_DNS_SECONDARY" # networking.management.dns_servers
$ExpectedNTP = "REPLACE_WITH_NTP_SERVER" # ntp.server
$results = [ordered]@{}
# Task 01 - WinRM
$svc = Get-Service -Name WinRM
$listener = Get-Item WSMan:\localhost\Listener\*\Transport -ErrorAction SilentlyContinue | Where-Object { $_.Value -match 'HTTP' }
$results['Task01_WinRM'] = if ($svc.Status -eq 'Running' -and $listener) { "PASS" } else { "FAIL: Service=$($svc.Status)" }
# Task 02 - RDP
$rdpReg = (Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server').fDenyTSConnections
$rdpFW = (Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Where-Object Enabled -eq 'True' | Measure-Object).Count
$results['Task02_RDP'] = if ($rdpReg -eq 0 -and $rdpFW -gt 0) { "PASS" } else { "FAIL: Reg=$rdpReg FWRules=$rdpFW" }
# Tasks 03/04 - Static IP + DHCP disabled
$adapter = Get-NetAdapter | Where-Object Status -eq 'Up' | Select-Object -First 1
$dhcp = (Get-NetIPInterface -InterfaceIndex $adapter.ifIndex -AddressFamily IPv4).Dhcp
$ip = (Get-NetIPAddress -InterfaceIndex $adapter.ifIndex -AddressFamily IPv4 | Where-Object { $_.IPAddress -notmatch '^169\.' }).IPAddress
$results['Task0304_StaticIP'] = if ($dhcp -eq 'Disabled' -and $ip -eq $ExpectedIP) { "PASS" } else { "FAIL: DHCP=$dhcp IP=$ip" }
# Task 05 - DNS
$dns = (Get-DnsClientServerAddress -InterfaceIndex $adapter.ifIndex -AddressFamily IPv4).ServerAddresses
$results['Task05_DNS'] = if ($dns -contains $ExpectedDNS1 -and $dns -contains $ExpectedDNS2) { "PASS" } else { "FAIL: DNS=$($dns -join ',')" }
# Task 06 - DNS resolution
try { Resolve-DnsName $ExpectedDNS1 -ErrorAction Stop | Out-Null; $results['Task06_DNSResolve'] = "PASS" }
catch { $results['Task06_DNSResolve'] = "FAIL: $_" }
# Task 07 - NTP
$ntpOut = (w32tm /query /status) | Out-String
$stratum = if ($ntpOut -match 'Stratum:\s*(\d+)') { [int]$Matches[1] } else { 99 }
$source = if ($ntpOut -match 'Source:\s*(.+)') { $Matches[1].Trim() } else { 'Unknown' }
$results['Task07_NTP'] = if ($stratum -lt 15 -and $source -notmatch 'Local CMOS|Free-running') { "PASS (Stratum=$stratum)" } else { "FAIL: Stratum=$stratum Source=$source" }
# Task 08 - ICMP
$icmpRules = (Get-NetFirewallRule | Where-Object { $_.DisplayName -match 'Echo Request.*ICMPv4' -and $_.Enabled -eq 'True' } | Measure-Object).Count
$results['Task08_ICMP'] = if ($icmpRules -gt 0) { "PASS ($icmpRules rule(s))" } else { "FAIL" }
# Task 09 - Unused adapters
$stuck = (Get-NetAdapter | Where-Object { $_.Status -eq 'Disconnected' -and $_.AdminStatus -eq 'Up' } | Measure-Object).Count
$results['Task09_Adapters'] = if ($stuck -eq 0) { "PASS" } else { "WARN: $stuck disconnected adapter(s) still enabled" }
# Task 10 - Hostname
$results['Task10_Hostname'] = if ($env:COMPUTERNAME -eq $ExpectedHostname.ToUpper()) { "PASS ($env:COMPUTERNAME)" } else { "FAIL: Got='$env:COMPUTERNAME' Expected='$($ExpectedHostname.ToUpper())'" }
# Task 11 - Storage
$pools = (Get-StoragePool | Where-Object IsPrimordial -eq $false | Measure-Object).Count
$vDisks = (Get-VirtualDisk -ErrorAction SilentlyContinue | Measure-Object).Count
$nonBoot = @(Get-Disk | Where-Object { $_.IsBoot -ne $true -and $_.Number -ne $null -and $_.BusType -notin 'Fibre Channel','iSCSI' })
$bad = ($nonBoot | Where-Object OperationalStatus -ne 'Online' | Measure-Object).Count
$results['Task11_Storage'] = if ($pools -eq 0 -and $vDisks -eq 0 -and $bad -eq 0) { "PASS ($($nonBoot.Count) disk(s) clean)" } else { "WARN: Pools=$pools VDisks=$vDisks BadDisks=$bad" }
# Drivers - inbox drivers are not supported (Learn: an adapter uses an inbox driver if DriverProvider is Microsoft)
$inbox = @(Get-NetAdapter -Physical -ErrorAction SilentlyContinue | Where-Object { $_.DriverProvider -eq 'Microsoft' })
$results['Drivers_NoInbox'] = if ($inbox.Count -eq 0) { "PASS" } else { "WARN: inbox driver on $(($inbox.Name) -join ', ') - confirm with your OEM" }
# Tasks 12-14 - disaggregated SAN only (skip for S2D or hybrid at initial deployment)
$sanDisks = @(Get-Disk | Where-Object { $_.BusType -in 'Fibre Channel','iSCSI' })
if ($sanDisks.Count -gt 0) {
$notRaw = @($sanDisks | Where-Object PartitionStyle -ne 'RAW')
$results['Task14_SanLunsRaw'] = if ($notRaw.Count -eq 0) { "PASS ($($sanDisks.Count) LUN(s) visible, all RAW)" } else { "FAIL: $($notRaw.Count) SAN disk(s) are not RAW" }
}
# Output results
$results.GetEnumerator() | ForEach-Object {
$color = if ($_.Value -match '^PASS') { 'Green' } elseif ($_.Value -match '^WARN') { 'Yellow' } else { 'Red' }
Write-Host " $($_.Key.PadRight(22)) $($_.Value)" -ForegroundColor $color
}
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
| Result | Meaning | Action |
|---|---|---|
PASS | Check succeeded | None |
WARN | Non-critical issue (e.g. storage pools present, adapter not fully cleaned up) | Review before proceeding |
FAIL | Check failed — configuration is incorrect | Re-run the relevant task |
Common Failures
| Check | Failure Message | Resolution |
|---|---|---|
Task0304_StaticIP | FAIL: DHCP=Enabled | Re-run Task 03/04 (static IP) |
Task07_NTP | FAIL: Source=Local CMOS Clock | Re-run Task 07 (NTP). Check NTP server reachability |
Task10_Hostname | FAIL: Got='WIN-XXXX' | Re-run Task 10 (hostname rename) and reboot node |
Task11_Storage | WARN: Pools=1 VDisks=2 | Run Task 11 (Clear Storage) before proceeding to Phase 04 |
| Connection fails | Connection failed: ... | Verify WinRM is enabled on the node (Task 01) |
Script Reference
| Parameter | Required | Description |
|---|---|---|
-InfrastructureFile | Yes | Path to infrastructure.yml |
-Credential | No | The nodes' local administrator. Default: identity.local_admin of the file, the password read through its secret reference |
-Node | No | Limit the run to these nodes |
-FailOnPendingChanges | No | Plan 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
| Issue | Cause | Resolution |
|---|---|---|
| Verification script reports group membership mismatch | GPO not yet applied or replication delay | Run gpupdate /force on the affected node, wait 60 seconds, then re-run verification |
| PSRemoting test fails for one or more nodes | WinRM service not running or firewall blocking port 5985 | On the failing node: Enable-PSRemoting -Force; verify firewall rule: Get-NetFirewallRule -Name WINRM-HTTP-In-TCP |
| Script cannot resolve node hostname | DNS record missing or stale | Verify 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.
Navigation
← Task 15: Combined Script · ↑ Phase 03 · Phase 04: ARC Registration →
Version Control
| Version | Date | Author | Changes |
|---|---|---|---|
| 1.0.0 | 2025-03-25 | Azure Local Cloud | Initial release |
| 1.2.0 | 2026-11-08 | Azure Local Cloud | Aligned 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 |