Search code examples
azureazure-cliazure-cli2

azure interactive shell history


I am wondering if there is a command that gives me history of the commands I've used inside azure interactive shell. Well, I can press up and down arrow to circle through my recent commands, but I'd like to see them all. Just to clarify: I know how to use "history" in the bash, with grep and so forth; I am running Linux Subsystem on Windows.


Solution

  • Currently, Azure Cli 2.0 does not support this. If you use bash shell, you could use command history to check history command. Like below:

    history| grep az|grep -v "grep"
    

    Also, your suggestion is a good idea, you could give feedback to developer with command az feedback.