mtbmsft Islam Gomaa on our Azure Stack HCI Slack there are several reports spanning for months that most failing resource in pre-deployment is LCM
This one is also handled here:
https://techcommunity.microsoft.com/t5/fasttrack-for-azure/common-deployment-challenges-and-workarounds-for-hci-23h2/ba-p/4044172
Can you confirm that the telemetry collected with every 23H2 deployment and (failed) attempt is collected even at this command?
Invoke-AzStackHciArcInitialization
----
Having the following outputs:
Azure Portal Azure Stack HCI Wizard page 1
Validate Selected Server:
Resource validation failed. Details: [{"Code":"ValidationFailed","Message":"Arc extensions installed on Arc Machine /subscriptions/a69d12f1-e62b-49b1-a483-6bc11b28a923/resourceGroups/AzSHCI-Clu-112-rg/providers/Microsoft.HybridCompute/machines/ASNode1 are
- DeviceManagementExtension
- EdgeRemoteSupport
- TelemetryAndDiagnostics
while required list of mandatory arc extensions are
- DeviceManagementExtension,
- LcmController,
- TelemetryAndDiagnostics,
,"Target":null,"Details":null},
So LCMController is the culprit once again, also visible on both fresh nodes
CU: 23H2 MBR 709
LCM Version: 30.2402.0.15
Scriptversion: 10.2402.0.15
The error log in the extension is extremely helpful and verbose,but for me looks like an internal code issue.
Microsoft.AzureStack.Orchestration.LcmController
Status
Failed
Automatic upgrade
Not supported
Version
30.2402.0.15
Status level
Error
Status message
Extension Message: Enable-Extension.ps1 : Installing LCM extention failed:
Extension Error: Get-ItemProperty : Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\LCMAzureStackStampInformation' because it
does not exist.
At C:\NugetStore\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2402.0.15\content\LCMControllerWinService\Dep
loymentScripts\LCMControllerWinService.psm1:128 char:30
+ ... onStatus = (Get-ItemProperty -path Registry::HKEY_LOCAL_MACHINE\SOFTW ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKEY_LOCAL_MACH...tampInformation:String) [Get-ItemProperty], ItemNotFo
undException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
Get-ItemProperty : Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\LCMAzureStackStampInformation' because it
does not exist.
At C:\NugetStore\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2402.0.15\content\LCMControllerWinService\Dep
loymentScripts\LCMControllerWinService.psm1:128 char:30
+ ... onStatus = (Get-ItemProperty -path Registry::HKEY_LOCAL_MACHINE\SOFTW ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKEY_LOCAL_MACH...tampInformation:String) [Get-ItemProperty], ItemNotFo
undException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
Transcript started, output file is C:\MASLogs\Install-LCMController_20240223-023842Z.log
VERBOSE: Loading module from path
'C:\NugetStore\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2402.0.15\content\LCMControllerWinService\Deplo
ymentScripts\LogmanHelpers.psm1'.
VERBOSE: Importing function 'Register-LogManScheduledTask'.
VERBOSE: Start-LCMControllerServiceLogman : Registering LogMan ScheduledTask.
VERBOSE: Register-LogManScheduledTask : starts logman script started.
VERBOSE: Register-LogManScheduledTask : Creating scheduled task: Start logman for LcmController service
VERBOSE: Register-LogManScheduledTask : Scheduled task Start logman for LcmController service created, register it to
task scheduler
TaskPath TaskName State
-------- -------- -----
\ Start logman for LcmController... Ready
VERBOSE: Register-LogManScheduledTask : Scheduled task Start logman for LcmController service is now registered
VERBOSE: Start-LCMControllerServiceLogman : Starting LogMan ScheduledTask.
VERBOSE: : Installing LCMController Service.
Status : Stopped
Name : LcmController
DisplayName : LcmController
[SC] ChangeServiceConfig2 SUCCESS
VERBOSE: : LcmController service created.
VERBOSE: LcmController starting.
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
PSComputerName :
VERBOSE: : Waiting 300 seconds for LcmController to start, attempt 1 of 5 ...
VERBOSE: : LcmController service Running.
VERBOSE: Loading module from path
'C:\NugetStore\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2402.0.15\content\LCMControllerWinService\Enter
priseCloudEngine.psd1'.
VERBOSE: Exporting function 'Get-EceInterfaceParameters'.
VERBOSE: Exporting function 'Test-EceInterface'.
VERBOSE: Exporting function 'Get-DeploymentActionPlanLog'.
VERBOSE: Exporting cmdlet 'Trace-ECEScript'.
VERBOSE: Exporting cmdlet 'Set-EceSecret'.
VERBOSE: Exporting cmdlet 'Get-EceConfiguration'.
VERBOSE: Exporting cmdlet 'Get-ActionProgress'.
VERBOSE: Exporting cmdlet 'Get-JsonTemplate'.
VERBOSE: Exporting cmdlet 'Invoke-EceAction'.
VERBOSE: Exporting cmdlet 'Join-RoleTemplate'.
VERBOSE: Exporting cmdlet 'Import-EceCustomerConfiguration'.
VERBOSE: Exporting cmdlet 'Set-RoleDefinition'.
VERBOSE: Importing cmdlet 'Get-ActionProgress'.
VERBOSE: Importing cmdlet 'Get-EceConfiguration'.
VERBOSE: Importing cmdlet 'Get-JsonTemplate'.
VERBOSE: Importing cmdlet 'Import-EceCustomerConfiguration'.
VERBOSE: Importing cmdlet 'Invoke-EceAction'.
VERBOSE: Importing cmdlet 'Join-RoleTemplate'.
VERBOSE: Importing cmdlet 'Set-EceSecret'.
VERBOSE: Importing cmdlet 'Set-RoleDefinition'.
VERBOSE: Importing cmdlet 'Trace-ECEScript'.
VERBOSE: Importing function 'Get-DeploymentActionPlanLog'.
VERBOSE: Importing function 'Get-EceInterfaceParameters'.
VERBOSE: Importing function 'Test-EceInterface'.
VERBOSE: Initialization action plan status:InProgress
VERBOSE: Node Initialization in progress.
Transcript stopped, output file is C:\MASLogs\Install-LCMController_20240223-023842Z.log