Attach Azure Container Registry to Azure Stack HCI workload cluster with error "(ResourceNotFound)"

KA SAN CHAN 186 Reputation points
2021-11-13T13:44:13.907+00:00

I run the command "az aks update -n "my-workload-cluster" -g "AzureStackHCIResourceGroup" --attach-acr "acrf1forhci"
to attach the Azure Container Registry, it will show the error:

(ResourceNotFound) The Resource 'Microsoft.ContainerService/managedClusters/my-workload-cluster' under resource group 'AzureStackHCIResourceGroup' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.ContainerService/managedClusters/my-workload-cluster' under resource group 'AzureStackHCIResourceGroup' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

149265-attach-acr2.png

If I list the Azure resource for the resource group by command "az resource list --resource-group AzureStackHCIResourceGroup"
the Azure Stack HCI is the type of "connectedClusters" instead of "managedClusters":

149076-connectedclusters.png

How can I attach Azure Container Registry to Azure Stack HCI workload cluster?
I see some information mentioned that we need to attach the Azure Container Registry to the AKS cluster so that it can solve "ImagePullBackOff" image pull problem when deploying the pod.
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.
358 questions
Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
461 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,146 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,391 Reputation points
    2021-11-17T08:03:48.817+00:00

    @KA SAN CHAN

    Apologies for delayed response on this.

    You can attach an ACR to the cluster but not using the az aks command like you normally do for AKS.
    Here is the tutorial on how to use ACR with AKS-HCI.
    Ref: https://learn.microsoft.com/en-us/azure-stack/aks-hci/deploy-azure-container-registry

    Hope this helps.
    Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.

    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.