Hello @Avishek Chowdhury ,
Welcome to Microsoft QnA.
Please check the RBAC role that has been assigned to your user identity.
Listing the run commands or showing the details of a command requires the Microsoft.Compute/locations/runCommands/read permission on Subscription Level. The built-in Reader role and higher levels have this permission.
Running a command requires the Microsoft.Compute/virtualMachines/runCommand/action permission. The Virtual Machine Contributor role and higher levels have this permission.
You can use one of the built-in roles or create a custom role to use Run Command.
Please check and get an appropriate RBAC role assigned to yourself to be able to view the commands.
To know more - refer run-command
Hope this helps. For any queries, feel free to reach back to me. I will look forward to your response.
Thanks :)
--------------
Please accept as answer
and upvote
if the above information is helpful.