Reputation: 1
i have 2 Susbscription first is called Prod and the 2nd is called Non-Prod.
the non prod subscription containes an aks "ttr-aks" and i want to attach it to the ACR which exists into the prod subscription
i am running following command to do the attachment after assign the role pullArc in the ACR
az aks update --name ttr-aks --resource-group ttr-res-grp --attach-acr myacr and get the following Error
ERROR: The resource with name '3fceXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'NON-PROD (e788173sssssssssssssssssssss)'.
i google it and didnt find an solution for this issue chant gpt is not helping too much
Upvotes: 0
Views: 461
Reputation: 5570
To attach your ttr-aks
AKS to an ACR in different subscription make use of below steps:
Select the AKS cluster that you want to attach the ACR to. In your case it is ttr-aks
In Aks cluster -> Networking tab under Container registries -> Add -> choose the subscription which you want to attach to your AKS. In your case prod/non-prod.
The AKS cluster will now be attached to your desired ACR. Make sure that the ACR is in the same region as the AKS cluster.
Also, you can try this so thread by djsly
Reference:
Upvotes: 0