We tried to upgrade the kernel still we had issue with assessing Gitlab repository

I am using the azure VM with gitlab community edition ,we executed the below command to update the Azure Agent on the vm

docs.microsoft.com

Update the Azure Linux Agent from GitHub

Learn how to update Azure Linux Agent for your Linux VM in Azure

apt list --installed | grep walinuxagent
sudo apt-get -qq update
sudo sed -i ‘s/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g’ /etc/waagent.conf
sudo apt-get install walinuxagent
but no luck
We tried to upgrade the kernel still we had an issue with assessing Gitlab repository.
Operating system
Linux

SKU
gitlab-ce

Publisher
gitlab