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.
- 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:
Verify that the resource group containing your cluster is listed.`az group list --output table`
- 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. - 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>
- 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.
- Connect an Azure Kubernetes Service cluster to Azure Arc in AKS enabled by Azure Arc - AKS hybrid
- Troubleshoot platform issues for Azure Arc-enabled Kubernetes clusters - Azure Arc
- Diagnose connection issues for Azure Arc-enabled Kubernetes clusters - Azure Arc
- Use cluster connect to securely connect to Azure Arc-enabled Kubernetes clusters. - Azure Arc
- Arc-connected AKS Edge Essentials - AKS hybrid
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