How to use cloud-init package upgrade on RHEL 8.8 when RHUI package is missing from the default image?

Jarrad Stock 0 Reputation points
2023-07-13T08:08:29.4566667+00:00

I'm trying to do some automation on building a RHEL image using the RHEL88-Gen2 SKU and when using cloud-init to do a package upgrade it keeps failing for this: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-linux-rhui-certificate-issues?tabs=rhel8-eus%2Crhel7-noneus%2Crhel7-rhel-sap-apps%2Crhel8-rhel-sap-apps%2Crhel9-rhel-sap-apps#cause-3-rhui-package-is-missing

Does this then mean my attempt at automation is not possible without Microsoft/Red Hat fixing the image? I've tried RHEL8.8, RHEL8.7, RHEL 8.4 (based on https://learn.microsoft.com/en-us/azure/virtual-machines/linux/using-cloud-init#rhel) and they all fail for RHUI being missing. I haven't yet tried the RAW images but I suspect the problem will still be present.

Does anyone have any ideas on how else to do this or am I waiting for Microsoft/Red Hat in this circumstance?

Thanks community.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,033 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,447 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-07-13T22:03:05.5966667+00:00

    @Jarrad Stock

    Is the certificate missing or just needing to be updated? The solution for both of these can be found here. You could include this fix prior to running the package update as a workaround.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.