Unable to register repos for Redhat 7 servers

Problem:
When I try to register my Red Hat Enterprise Linux Server release 7.3 servers to foreman repo, I get the

[root@prbigdata1s038 yum.repos.d]# subscription-manager register --org=“BigDataCC” --force --activationkey=“AK_PROD_RH7”
Unregistering from: prbigdata1s077.bigdata.intraxa:443/rhsm
The system with UUID c67b7c4e-0ee4-4c1f-a52f-709fa9196cd2 has been unregistered
All local data removed
The system has been registered with ID: bf551470-982d-4f45-b168-5563c61565fe
The registered system name is: prbigdata1s038.bigdata.intraxa
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed

Unable to find available subscriptions for all your installed products.
[root@prbigdata1s038 yum.repos.d]# subscription-manager repos --list
This system has no repositories available through subscriptions.

and the redhat.repo is empty.

Expected outcome:
redhat.repo file to have enteries pointing to foreman server repos.

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

logs

Other relevant data:*
[root@prbigdata1s038 yum.repos.d]# subscription-manager identity
system identity: d694bc49-43a4-4dc2-b8be-cdb150dc3849
name: prbigdata1s038.bigdata.intraxa
org name: BigDataCC
org ID: BigDataCC
environment name: Novelle_RH7_June2019_PROD/RH7_Jun2019

You seem to be getting a connection to Foreman, so that’s good. The only thing I’d suggest is looking at the activation key.

You might be seeing the same “unexpected behaviour” that I suffered with, as detailed here:
https://bugzilla.redhat.com/show_bug.cgi?id=1500959

The fix is to have an activation key with nothing configured on it at all, except having Auto-Attach = Yes on its Subscriptions tab. That will force your host to attach RHEL subscriptions. (I call mine “Auto-Attach”.)

Then have a second key with any subscriptions to custom repos e.g. local EPEL, Katello Client. (I call mine “RHEL7” for most hosts.)

So when I join a host, I do:

subscription-manager register --org=myorg --activationkey=Auto-Attach,RHEL7

I hope that helps.