After creating a VM using the template that was created using RHEL 8 I tried to register the new VM and the following error was shown:
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d"
The solution for me was to remove and add subscriptions again RHEL8:
subscription-manager remove --all subscription-manager clean subscription-manager register --username <redhat username> --auto-attach dnf repolist or yum repolist