How to fix "The resource with name 'XXXXX' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'XXXXXXX'"?

Rakesh Sid 0 Reputation points
2023-04-17T09:25:53.3033333+00:00

How to fix "The resource with name 'XXXXX' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'XXXXXXX'"? I've registered the Microsoft.ContainerRegistry resource provider by running az provider show -n Microsoft.ContainerRegistry also, but still getting the issue not solved.

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,776 Reputation points
    2023-04-18T13:54:34.99+00:00

    Hello Thank you for your question and reaching out. If the subscription hasn't registered the Microsoft.ContainerRegistry resource provider, this error can appear. Run az acr show -n registry_name to see if the registry is present in the current subscription. Run az provider show -n Microsoft.ContainerRegistry to see if the resource provider has been registered for the subscription. Run az provider register -n Microsoft.ContainerRegistry to register it if you haven't already. --If the reply is helpful, please Upvote and Accept as answer--

    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.