Hi Noaman Mohamed,
If you are unable to connect to your Linux VM via SSH, please try below troubleshooting steps:
Go to Azure Portal then to your VM, check if status is Running. If it's stopped or deallocated, start the VM.
In the Networking tab of the VM, check for Inbound port rules. See that a rule exists to allow TCP port 22 from your IP.
Check the Boot diagnostics screenshots to confirm if the VM booted successfully or has kernel issues. Azure boot diagnostics
If the Azure VM Agent status is not ready, please check:
If SSH doesn't work, use serial console. Go to Azure Portal then to your VM. In the left side panel Serial Console, check the Azure agent service:
sudo systemctl status waagent
If it's inactive or failed, restart it:
sudo systemctl restart waagent
For detailed information, please check: Troubleshoot SSH connections, Troubleshoot the Azure Linux Agent
If you have any further queries, let me know. If the information is helpful, please click on Upvote and Accept Answer on it.