Hello @Rajkumar
Thank you for posting your query on Microsoft Q&A. The behavior you are getting is expected by design. This is because as per Azure Cloud Shell User permissions
Permissions are set as regular users without sudo access. Any installation outside your
$Home
directory isn't persisted.
For other similar issues kindly refer to Limitations of Azure Cloud Shell.
Please do let me know if you have any further queries in the comments section.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes/No), and share your feedback if the suggestion does answer your query. This will help us and others in the community as well.