@kumar kaushal
1- Yes, WALinuxAgent calls install/enable to install & enable the extension
2- Yes, extensions logs is the starting point. https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/troubleshoot
You can usually decode the message with something like echo "<error_message>" | base64 -d | pigz -d
But when you see all extensions in failed state, then maybe you can look at the waagent.log to see if it’s working fine, or if it’s the one reporting issues. If it’s not working, then it can’t report right status for extensions.
https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/linux-azure-guest-agent
3- I’d refrain from uninstalling WALinuxAgent, especially if you’re trying to do that manually.
Who built that VM? Is it coming from Marketplace? Or a custom image? Which version of the Linux Agent?
You can open a Technical Support and our support professionals will help you.
----------------------------------------------------------------------------------------------------------------------
If the response helped, do "Accept Answer" and up-vote it