@kumar kaushal Apologies for the delay in response and all the inconvenience caused because of the issue. Red Hat Enterprise Linux (RHEL) images are available in Azure via a pay-as-you-go or bring-your-own-subscription (BYOS) (Red Hat Gold Image) model.
As mentioned here for Pay-As-You-Go Azure offers a variety of RHEL pay-as-you-go images. These images come properly entitled for RHEL and are attached to a source of updates (Red Hat Update Infrastructure). These images charge a premium fee for the RHEL entitlement and updates.
Similarly for BYOS as mentioned here Azure also offers Red Hat Gold Images (rhel-byos). These images might be useful to customers who have existing Red Hat subscriptions and want to use them in Azure. You're required to enable your existing Red Hat subscriptions for Red Hat Cloud Access before you can use them in Azure. Access to these images is granted automatically when your Red Hat subscriptions are enabled for Cloud Access and meet the eligibility requirements.
Hence the VM wont be registered automatically on Subscription Management for RedHat but you can chose between above two.
In order to take benefit of BYOS you can refer to this to understand How Microsoft Azure Customers Can Access the Red Hat Customer Portal.
This official doc from Microsoft can be beneficial for you.
For the given command sudo subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Unknown
System Purpose Status: Unknown
This is the expected result when Redhat server is not registered with Redhat Subscription. If the server is regsitered you get something like below:
sudo subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 75
Version: 7.7
Arch: x86_64
Status: Subscribed
Status Details:
Starts:
Ends:sudo subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Currentsudo subscription-manager identity
system identity:
name: <fqdn>
org name: <7 numbers>
org ID: <7 numbers>
As mentioned here as well you are getting the warning since subscription manager is not registered.Red Hat Subscription Manager works with yum. Subscription Manager has its own yum plug-ins: product-id for subscription-related information for products and subscription-manager which is used for the content repositories.
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.