Hello K. Kong,
Welcome to microsoft Q&A, Thankyou for posting your query here.
CBL-Mariner, short for Common Base Linux Mariner, is a Linux distribution developed by Microsoft for its cloud infrastructure and edge products and services.
CBL-Mariner and Ubuntu are Linux distributions, they are not 100% compatible.
Ubuntu uses apt, while Mariner uses tdnf, different default software packages, and potentially different system libraries.
If you've already created the VM with CBL-Mariner, you won't be able to switch the OS to Ubuntu.
If your application has been tried and tested on Ubuntu 22.04, it's understandable you'd want to continue using that specific environment.
I have created VM in azure using Ubuntu 22.04
and lsb_release -a
gives:
Hope this helps you.
If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!