Description of problem: Suggest to install NetworkManager-cloud-setup package, enable Azure configuration and enable nm-cloud-setup.timer and nm-cloud-setup.service. This service can detect the secondary IPs from Azure metadata and configure it inside the VM. Version-Release number of selected component (if applicable): RHEL-8/9 RHEL images in the Azure Marketplace * NetworkManager-nm-cloud-setup version must larger than NetworkManager-1.30.0-13.el8_4, or will hit a critical issue, see BZ#2014510 How reproducible: 100% Steps to Reproduce: Actual Results: There's no NetworkManager-cloud-setup installed in the RHEL images Expected Results: 1. Install NetworkManager-cloud-setup package 2. mkdir -p /etc/systemd/system/nm-cloud-setup.service.d cat > /etc/systemd/system/nm-cloud-setup.service.d/10-enable-azure.conf << EOF [Service] Environment=NM_CLOUD_SETUP_AZURE=yes EOF 3. Enable nm-cloud-setup.service, nm-cloud-setup.timer Additional info: It has been enabled in the AWS RHEL images. Suggest to also enable it in the Azure images.
> 2. There's "Environment=NM_CLOUD_SETUP_AZURE=yes" in /usr/lib/systemd/system/nm-cloud-setup.service Files in /usr/lib are provided by the RPM package. It's not good to modify them. Instead, systemd supports overlaying configuration in /etc. See "EXAMPLE SETUP FOR CONFIGURING AND PREDEPLOYING NM-CLOUD-SETUP" in `man nm-cloud-setup` for how to enable nm-cloud-setup.
(In reply to Thomas Haller from comment #1) > > 2. There's "Environment=NM_CLOUD_SETUP_AZURE=yes" in /usr/lib/systemd/system/nm-cloud-setup.service > > Files in /usr/lib are provided by the RPM package. It's not good to modify > them. > Instead, systemd supports overlaying configuration in /etc. > > See "EXAMPLE SETUP FOR CONFIGURING AND PREDEPLOYING NM-CLOUD-SETUP" in `man > nm-cloud-setup` for how to enable nm-cloud-setup. Thank you so much Thomas! According to 'man nm-cloud-setup', the step 2 should be: mkdir -p /etc/systemd/system/nm-cloud-setup.service.d cat > /etc/systemd/system/nm-cloud-setup.service.d/10-enable-azure.conf << EOF [Service] Environment=NM_CLOUD_SETUP_AZURE=yes EOF I'll correct my step in the comment 0. Thanks!