Install-AksHci fails on latest server 2022 in powershell and windows admin center

keith siilats 1 Reputation point
2021-11-04T21:00:11.99+00:00

Hi in Powershell following step 5
https://learn.microsoft.com/en-us/azure-stack/aks-hci/kubernetes-walkthrough-powershell
senthiPS C:\Users\Administrator> Install-AksHci
VERBOSE: [11/04/2021 16:13:54] [Kva] Uninstalling KVA without Azure Connection may result in leaked Arc Connected
Clusters, Please clean up resources in portal.
create --configfile "f:\clusterstorage\volume1\ImageStore\1.0.5.11028\yaml\appliance.yaml" --outfile
"f:\clusterstorage\volume1\ImageStore\1.0.5.11028\kubeconfig-mgmt" --azure-creds-stdin returned a non zero exit code
1 [Error: unable to reconcile group: rpc error: code = Unavailable desc = connection closed]
At C:\Program Files\WindowsPowerShell\Modules\Kva\1.0.13\Kva.psm1:3629 char:9

  • throw "$command $arguments returned a non zero exit code $LAS ...

And If i follow the Windows Administrator version on installing aks-hci i get:
ErrorWe cannot display the changes right now.: The following commands are already available on this system:'Find-Package,Install-Package,Uninstall-Package'. This module 'PackageManagement' may override the existing commands. If you still want to install this module 'PackageManagement', use -AllowClobber parameter.

I ran this command successfully:
Install-Module -Name PackageManagement -Repository PSGallery -AllowClobber

can you push maybe new version of the windows admin center that has a checkbox to add AllowClobber?
or tell me how i can remove Find-Package,Install-Package,Uninstall-Package

Thank you!

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
269 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,863 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. keith siilats 1 Reputation point
    2021-11-13T19:51:04.887+00:00

    Hi I tried to start again:
    https://learn.microsoft.com/en-us/azure-stack/aks-hci/kubernetes-walkthrough-powershell
    Windows updated the .net meanwhile
    Now I get nuget package version errors and IPAddress not found errors.

    1. Do you need to use powershell 5 or 7?
    0 comments No comments

  2. keith siilats 1 Reputation point
    2021-11-13T23:14:39.353+00:00

    I think I made some progress, when I updated to vNext looks like some packages are in
    C:\Program Files (x86)\WindowsPowerShell\Modules
    the x86 is bad
    In particular PowerShellGet was there and did not get updated
    If you delete it from both places its no good, just delete the PowerShellGet folder from
    C:\Program Files (x86)\WindowsPowerShell\Modules

    0 comments No comments

  3. MattMcSpirit-MSFT 561 Reputation points
    2021-11-15T20:15:56.683+00:00

    Hi,

    Thanks for the extra information. Your hardware looks fine - more than enough to evaluate AKS-HCI on a single node.

    I'd suggest using PS 5.x for the time being.

    PowerShellGet will be important to install the other modules - on my local machine, i have versions 2.2.5 and 3.0.11 as well as the initial 1.0.0.1. I believe it needs to be 2.2.3 or newer. PowerShellGet will also be in C:\Program Files\WindowsPowerShell\Modules\PowerShellGet, if you want to check.

    Now that you have started again, at what stage are the errors happening?

    Thanks,
    Matt

    0 comments No comments