Hi Michael Alpert I want to help you with this question.
That looks like you have some characters in front of the command. Because of that, the system can't recognize the command. Please remove the brackets and circumflex (^). The "az vm create..." must be placed directly at the $ sign.
If the problem is solved for you and all questions are answered, I would be happy if you mark the answer as accepted to close the thread.