Looks like the container registry resource type is not registered for your subscription. Use the cmdlet Get-AzResourceProvider -ProviderNamespace "Microsoft.ContainerRegistry"
to check the registration status. It should show the regions where the successful registrations are found.
Try to register with the following cmdlet
Register-AzResourceProvider -ProviderNamespace "Microsoft.ContainerRegistry"
Once the registration went successful, check the result by running the cmdlet again and see the regions are covered
Get-AzResourceProvider -ProviderNamespace "Microsoft.ContainerRegistry"
--please don't forget to upvote
and Accept as answer
if the reply is helpful--