I try to run the simple command of 'az version' that will be executed on a VM with the Run Command Script but I get this error: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
But when I run this command from the VM, that I connect it with Remote Desktop Connection it works and I get the 'az version' with all the details. I also installed AZ Module in the VM.
What should I do in order to operate 'az' commands from the Run Command Script?