I just started a Standard RedHat 7 VM on Azure.
I login and type:
sudo yum update
Loaded plugins: langpacks, product-id, search-disabled-repos https://rhui-3.microsoft.com/pulp/repos//content/dist/rhel/rhui/server/7/7Server/x86_64/dotnet/1/debug/repodata/repomd.xml: [Errno 14] curl#58 - "SSL peer rejected your certificate as expired." Trying other mirror. https://rhui-1.microsoft.com/pulp/repos//content/dist/rhel/rhui/server/7/7Server/x86_64/dotnet/1/debug/repodata/repomd.xml: [Errno 14] curl#58 - "SSL peer rejected your certificate as expired." Trying other mirror. ...
I thought that the PAYG license include updates? Or is the current image broken? Tried the 7.4 image too?
I also faced same issue yesterday. I referred to following links on Redhat Support Portal.
- https://access.redhat.com/articles/3189332 (for instructions to link Azure account with RH Portal and register for portal,
- (registration must) https://access.redhat.com/solutions/3167021
Though my problem didn't got resolved from the above post after following instructions as it is, after taking cue from the problem description, following worked for me. In my case, older version of "rhui-azure-rhel7" RPM was installed on VM I had setup few weeks back where I was facing same issue as yours.
curl -o azureclient.rpm https://rhui-1.microsoft.com/pulp/repos/microsoft-azure-rhel7/rhui-azure-rhel7-2.2-74.noarch.rpm rpm -U azureclient.rpm
Hope this helps.