The cluster is connected to Azure Arc and I can see the cluster resources on azure arc. But when I perform any commands to the cluster from Cloudshell, it says cluster not found under the resource group.

Nikhitha Chandana Chinthapalli 0 Reputation points
2024-06-28T15:39:59.9433333+00:00

This is the error I'm getting while accessing the cluster on Azure Arc.righive

This is my cluster connected to AzureArc.rig2

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
440 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.
2,158 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sina Salam 12,166 Reputation points
    2024-06-29T17:34:15.69+00:00

    Hello Nikhitha Chandana Chinthapalli,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    Problem

    I understand that you are getting "ResourcesNotFound" error, despite your cluster connected to AzureArc..

    Solution

    It seems like there might be a configuration issue or a discrepancy between the Azure Arc metadata and the actual cluster state. Though, several things can cause this type of error, I would like you to do the following that will lead us to the right cause and solve the issue.

    1. Confirm that you are using the correct resource group where your Azure Arc-enabled Kubernetes cluster is located. Run the following command in Cloud Shell to list all the resource groups in your subscription:
          `az group list --output table`
      
      Verify that the resource group containing your cluster is listed.
    2. Ensure that you are using the correct cluster name when executing commands. Use the following command to list all the Azure Arc-enabled Kubernetes clusters in the specified resource group: az connectedk8s list --resource-group <your-resource-group-name> --output table Check if your cluster is listed.
    3. Verify that your Azure CLI context is set to the correct subscription and resource group. Run the following command to view your current context: az account show --output table If needed, switch to the correct context using: az account set --subscription <your-subscription-id>
    4. After confirming the above steps, retry your commands in Cloud Shell. For example, if you're trying to get the nodes of your cluster, use: kubectl get nodes

    If the issue persists, please provide additional details or any error messages you come across to help further.

    References

    Kindly use the reference below for more details and steps to troubleshoot.

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam


  2. Nikhitha Chandana Chinthapalli 0 Reputation points
    2024-07-02T04:53:48.43+00:00

    Hi Sina,

    I followed your instructions.

    1. Confirmed that I'm using the correct resource group where your Azure Arc-enabled Kubernetes cluster is located using command "az group list --output table".
    2. Ensured I'm using correct cluster name.
    3. Set current context to my subscription

    After following these steps, the issue still persists.

    Thanks,

    Nikhitha.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.