not able to add AADLoginForLinux extension

2023-07-20T13:38:22.9366667+00:00

Hi Team,

I am having Linux (redhat 8.7) virtual Machine, VM was created with out AADSSHLoginForLinux. Now If I am trying to install this extension below error getting.

command :
az vm extension set --publisher Microsoft.Azure.ActiveDirectory --name AADSSHLoginForLinux --resource-group $MyRG --vm-name $MyVM

we are trying to add extension but its failing with below error :

Status message[ExtensionOperationError] Non-zero exit code: 20, /var/lib/waagent/Microsoft.Azure.ActiveDirectory.AADSSHLoginForLinux-1.0.2385.1/./installer.sh install [stdout] Machine OS: rhel v8.7 x86_64 Installing... Failed to update the RHUI cert; ignoring the error This is an Azure machine Configuring microsoft-prod repo [stderr] Error: Failed to download metadata for repo 'rhui-microsoft-azure-rhel8': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 16 100 16 0 0 1230 0 --:--:-- --:--:-- --:--:-- 1333 curl: (60) SSL certificate problem: CA certificate key too weak More details here: https://curl.haxx.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. Cannot access https://packages.microsoft.com. Make sure this URL is not blocked by a firewall

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,321 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,846 Reputation points Microsoft Employee
    2023-07-20T16:05:03.8633333+00:00

    @Bansari Oza [ MTN Group - South Africa ]

    I believe this error is caused by an issue with the RHUI certificate. The troubleshooting page here outlines the possible causes and solutions. You can run this command on the VM or use the cli run-command. Please try this then retry installing the extension.

    az vm run-command invoke -g $MyRG -n $MyVM --command-id RunShellScript --scripts "yum update -y --disablerepo='*' --enablerepo='*microsoft*'"
    

    Hope this helps! Let me know if this doesn't work or you have further problems.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image

    1 person found this answer helpful.
    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.