Unable to upgrade AKS Version - Azure Stack HCI

Akash Sharma 20 Reputation points
2024-03-19T06:16:52.9266667+00:00

I have aks running on azure stack hci 23h2 with 1.26.3 version. I want to upgrade it on new version**
When I checked the supported versions on Azure Stack HCI, it showed that there is an upgrade available for the 1.26.3 version.

az aksarc get-versions -g "test-rg" --custom-location test-rg-custloc**

    "patchVersions": {

      "1.26.3": {

        "readiness": [

          {

            "errorMessage": null,

            "osSku": "CBLMariner",

            "osType": "Linux",

            "ready": true

          },

          {

            "errorMessage": null,

            "osSku": "Windows2019",

            "osType": "Windows",

            "ready": true

          },

          {

            "errorMessage": null,

            "osSku": "Windows2022",

            "osType": "Windows",

            "ready": true

          }

        ],

        "upgrades": [

          "1.27.1",

          "1.27.3"

Then, I attempted to check the upgrade version for a specific cluster using this command:

az aksarc get-upgrades --resource-group test-rg --name test-aks4

It gave me the following error:

2024-03-19 05:23:38.564206 Error: ResourceNotFound

Detail: The resource 'Microsoft.Kubernetes/connectedClusters/test-aks4/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/upgradeProfiles/default' could not be found.

Please help me here.

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
300 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,961 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Prrudram-MSFT 22,941 Reputation points
    2024-03-19T08:44:32.8766667+00:00

    Hi @Akash Sharma

    Looking at the error message you provided, the upgrade profile for your AKS cluster could not be found. This could be due to a few reasons, such as an incorrect resource group or cluster name, or an issue with the Azure Stack HCI environment.

    To troubleshoot this issue, you can try the following steps:

    Verify that the resource group and cluster name are correct. You can use the Azure portal or Azure CLI to check the names of your resource groups and AKS clusters.

    Check if there are any issues with the Azure Stack HCI environment. You can use the Azure Stack HCI management tools to check the status of your environment and ensure that it is healthy.

    Try upgrading the AKS cluster using the Azure portal or Azure CLI. If the issue persists, you can try upgrading the AKS cluster using the Azure portal or Azure CLI instead of the Azure Arc CLI. This may help to isolate the issue and provide more information on what is causing the error.

    If none of these steps resolve the issue, you may need to contact Microsoft support for further assistance.

    I hope this helps! Let me know if you have any further questions


  2. Akash Sharma 20 Reputation points
    2024-03-22T06:21:10.7133333+00:00

    Hi @Prrudram-MSFT I verified that both the resource group name and the AKS cluster name are correct. These two commands seem to be working fine. az aksarc get-versions -g "test-rg" --custom-location test-rg-custloc** az aksarc upgrade --name "test-aks4" --resource-group "test-rg" --kubernetes-version "1.26.3"

    The upgrade command works successfully, but the get-upgrades command isn't working. az aksarc get-upgrades --resource-group test-rg --name test-aks4

    0 comments No comments

  3. Akash Sharma 20 Reputation points
    2024-04-03T04:35:29.7166667+00:00

    Hi @Prrudram-MSFT , I hope you are doing well. Have you had a chance to check the issue? Or is this a bug? I've checked on all clusters, and I have the same issue.