Hello Amila Goonatillake
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Ubuntu 22.04 LTS is a supported image on Azure.
The error message "VM agent is not ready state" that you shared, indicates that the VM agent is not running or not in a ready state. It could be due to some misconfiguration or issue with the VM. You can try restarting the VM to see if it resolves the issue. If the issue persists, you can check the VM logs to identify the root cause of the issue.
Partitioning the disk and creating a file system is a common practice when you want to use a data disk in Linux VMs. However, it is not necessary to partition the disk and create a file system if you are using Azure Managed Disks. Azure Managed Disks are already partitioned and formatted with a file system, so you can directly use them without any additional configuration.
Few Troubleshooting steps:
-When you modify the /etc/fstab
file to include entries for mounting disks, it's essential to ensure that the entries are correct and won't cause issues during boot. Mistakes in fstab entries can lead to boot failures or unexpected behavior. Double-check your fstab entries to ensure they are correct.
-Consider whether manual partitioning of the data disk is necessary for your use case, and if not, try attaching the disk without partitioning it.
Hope this helps.