@Archana Jayakumar You can refer to below troubleshooting guide for not ready status:
https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/linux-azure-guest-agent
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.