Forum Discussion

maikdoebler's avatar
maikdoebler
Copper Contributor
Mar 27, 2024

Problems with Azure Stack HCI 23H2 - add-server error

Hello Community,

 

We have an Azure Stack HCI 23H2 with 2 nodes in operation. One server had hardware problems, so we replaced it. We now want to add the new server as a new node and are following the instructions in the MS Learn Docs.

 

As soon as we enter the command "add-server" on the existing node with the data of the new node,

we get the following error:

Type "DeployPreRequisites" of Role "MocArb" raised an exception: Cannot proceed command because of one or more missing mandatory parameters: Nugetstorepath.

The problem is that we can now only continue with an add-server - rerun, where we cannot specify another parameter like
-NuGetStorepath.

 

Unfortunately, I can't find any further information about this problem in the docs or anywhere else.

 

Thanks for the help in advance.

 

1 Reply

  • Not sure you did try this:

     

    1. Verify the Module Exists

    Get-Module -ListAvailable ScaleNodeOperations


    If it doesn’t show up, manually check:

    Get-ChildItem "C:\Program Files\WindowsPowerShell\Modules" -Recurse | Where-Object { $_.Name -like "*ScaleNodeOperations*" }


    2.    Install NuGet Provider The error suggests NuGet isn’t available, which is needed to fetch modules:

    Install-PackageProvider -Name NuGet -Force
    Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted


    3.    Re-import the Module Once NuGet is installed:

    Import-Module ScaleNodeOperations


    4. Retry the Command After confirming the module loads, try add-server again. If it still fails, you may need to restart the deployment from scratch, as some users found that a clean setup resolved the issue.


    5. Clean Up Deployment Artifacts If you're stuck in a rerun loop, Microsoft recommends deleting:
    o    C:\ecestore
    o    C:\CloudDeployment
    o    C:\nugetstore
    o    Registry key: 

    Remove-Item HKLM:\Software\Microsoft\LCMAzureStackStampInformation

     

Resources